Install MailHog with Nginx on Ubuntu server

Debian / Ubuntu

sudo apt-get -y install golang-go
go get github.com/mailhog/MailHog

Then, start MailHog by running /path/to/MailHog in the command line.

E.g. the path to Go’s bin files on Ubuntu is ~/go/bin/, so to start the MailHog run:

~/go/bin/MailHog

sudo nano /etc/systemd/system/mailhog.service

[Unit]
Description=MailHog service

[Service]
ExecStart=/home/ubuntu/go/bin/mailhog

[Install]
WantedBy=multi-user.target

sudo systemctl enable mailhog

sudo systemctl start mailhog

Add it to nginx

sudo nano /etc/nginx/sites-available/default

server {
        server_name mail.your.domain;
        listen 80;
        listen [::]:80;

        location / {
                proxy_pass      http://localhost:8025;
                proxy_set_header    Host             $host;
                proxy_set_header X-NginX-Proxy true;
                proxy_set_header Upgrade $http_upgrade;
                proxy_set_header Connection "upgrade";
                proxy_http_version 1.1;
                proxy_redirect off;
                proxy_buffering off;
        }
}

sudo nginx -t

sudo service nginx reload

Pay using TransferWise for services render

I have been in freelancing job for a long time. When I worked for a client they usually pay me using many methods like Western Union, PayPal and TransferWise. Right now my favorite is TransferWise

Since I converted from US Dollar to Philippine Peso, its so good if I can get a real time currency conversion rates.

With a good conversions and less fee, I can take home a good pay.

Sign up for TransferWise and you will see what I mean.

New Fresh Content for the site

Years since the last time I wrote. I missed writing things about new technology related to web development. The year is already 2018 and I am so excited to build great things. I have a lot in my mind but years and years already past but none of those things came to life. I hope this year and years to come I can accomplished some projects in mind.