nginx/domain setup
Here you will find how setup your nginx for logviewer
First install nginx on your system
sudo apt install nginx -yafter you'v done this you want to make a nginx config file. Those will be stored in both
- /etc/nginx/sites-available
and
- /etc/nginx/sites-enabled
The nginx config will be named: logviewer.conf
The content of the file will be
server {
listen 80;
listen [::]:80;
server_name my.domain.here;
location / {
proxy_pass http://127.0.0.1:XXXX;
}
}Replace XXXX with the port u have set in your .env for your logviewer, for example port 7777 and you want your logviewer domain to be mylogviewer.logs.vodka
Your nginx configfile will be
server {
listen 80;
listen [::]:80;
server_name mylogviewer.logs.vodka;
location / {
proxy_pass http://127.0.0.1:7777;
}
}Make sure the logviewer.conf file is in
- /etc/nginx/sites-enabled
once this all is done you may do
sudo systemctl restart nginxLast updated
Was this helpful?