1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/coin_ynh.git synced 2024-09-03 18:16:26 +02:00
coin_ynh/conf/nginx.conf
2022-09-03 00:23:04 +02:00

29 lines
635 B
Nginx Configuration File

#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
location __PATH__/ {
try_files $uri @__NAME__;
}
location __PATH__/protected/ {
internal;
alias __FINALPATH__/__NAME__/smedia/;
}
location __PATH__/media/ {
alias __FINALPATH__/media/;
}
location __PATH__/static/ {
alias __FINALPATH__/static/;
}
location __PATH__/assets/ {
alias __FINALPATH__/static/;
}
location @__NAME__ {
proxy_set_header Host $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;
proxy_pass http://unix:__FINALPATH__/sock;
}