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:
parent
07688751a7
commit
f88646060d
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue