Skip to content

Instantly share code, notes, and snippets.

@vaughany
Created March 19, 2020 15:34
Show Gist options
  • Save vaughany/ec9fd88a88337982ecb6a1807ae7dda7 to your computer and use it in GitHub Desktop.
Save vaughany/ec9fd88a88337982ecb6a1807ae7dda7 to your computer and use it in GitHub Desktop.
Install and run Frontail manually on Ubuntu

Frontail

On server to be Frontail-ed:

Download frontail from https://github.com/mthenw/frontail:

$ wget https://github.com/mthenw/frontail/releases/download/v4.9.0/frontail-linux

Move to /usr/local/bin/:

$ sudo mv frontail-linux /usr/local/bin/

Make it executable:

$ sudo chmod +x /usr/local/bin/frontail-linux

Run it daemonized (-d):

$ /usr/local/bin/frontail-linux -d -U username -P password --url-path /frontail /var/log/syslog

...or under screen:

$ screen
$ /usr/local/bin/frontail-linux -U username -P password --url-path /frontail /var/log/syslog
Ctrl-A, d

On the proxy server:

Edit the appropriate nginx config file:

$ sudo nano /etc/nginx/conf.d/server-config.conf

Add a new location section in the server section:

location /frontail {
  proxy_pass http://ip-address-of-server:9001;
}

Check config and reload nginx if 'ok':

$ sudo service nginx configtest
$ sudo service nginx reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment