frontail
frontail copied to clipboard
Cant load theme when using NGINX for Frontail
Hi all
i still cant get this to run, it wont load the theme. Even trying the suggestions above
Can anyone assist?
} location /frontail/ { proxy_pass http://192.168.0.3:9001; proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; }
Hi @dastrix80 - I had similar problem and here is my solution to watch error & access log via nginx.
1. this is nginx configuration
nginx version: nginx/1.10.3 (Ubuntu)
` #error log location = /frontaile { return 301 /frontaile/; }
location ~ /frontaile/(?<ndpath>.*) {
access_log off; # that is important otherwise too many sockets in your log
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_http_version 1.1;
proxy_pass_request_headers on;
proxy_set_header Connection "keep-alive";
proxy_store off;
proxy_pass http://127.0.0.1:28404/frontaile/$ndpath$is_args$args;
gzip on;
gzip_proxied any;
gzip_types *;
}
#access log
location = /frontaila {
return 301 /frontaila/;
}
location ~ /frontaila/(?<ndpath>.*) {
access_log off;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_http_version 1.1;
proxy_pass_request_headers on;
proxy_set_header Connection "keep-alive";
proxy_store off;
proxy_pass http://127.0.0.1:28200/frontaila/$ndpath$is_args$args;
gzip on;
gzip_proxied any;
gzip_types *;
}
` 2. I have 2 shell scripts:
For error log ~/frontaile.sh
` #!/bin/bash
/usr/local/bin/frontail --disable-usage-stats -U [NAME] -P [PASSWORD] -p 28404 --url-path /frontaile /var/log/nginx/error.log `
For access log ~/frontaila.sh
` #!/bin/bash
/usr/local/bin/frontail --disable-usage-stats -U [NAME] -P [PASSWORD] -p 28200 --url-path /frontaila /var/log/nginx/error.log ` 3. Fles executable chmod +x frontaile.sh chmod +x frontaila.sh
4. Run files via pm2
pm2 start ~/frontaile.sh
pm2 start ~/frontaila.sh
5. Restart nxinx and watch logs in browser
https://YOURDOMAIN/frontaile https://YOURDOMAIN/frontaila