[GH-ISSUE #164] Cant load theme when using NGINX for Frontail #113

Open
opened 2026-03-03 16:04:32 +03:00 by kerem · 1 comment
Owner

Originally created by @dastrix80 on GitHub (May 3, 2019).
Original GitHub issue: https://github.com/mthenw/frontail/issues/164

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;
}

Originally created by @dastrix80 on GitHub (May 3, 2019). Original GitHub issue: https://github.com/mthenw/frontail/issues/164 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; }
Author
Owner

@trebla commented on GitHub (Aug 25, 2019):

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

<!-- gh-comment-id:524624489 --> @trebla commented on GitHub (Aug 25, 2019): 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
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/frontail#113
No description provided.