1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/plume_ynh.git synced 2024-09-03 20:15:54 +02:00

Fix nginx

This commit is contained in:
anmol 2018-11-11 06:57:58 +05:30
parent 07688751a7
commit f88646060d

View file

@ -1,10 +1,14 @@
location ~* \.(jpg|jpeg|png|gif|ico|js|pdf)$ {
root __FINALPATH__/__APP__
root __FINALPATH__/__NAME__
add_header Cache-Control "public";
expires 7d;
}
location / {
# Force usage of https
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
}
proxy_pass http://localhost:__PORT__/;
proxy_set_header Host $http_host;