mirror of
https://github.com/YunoHost-Apps/libreerp_ynh.git
synced 2024-09-03 19:36:13 +02:00
[enh] Force https
This commit is contained in:
parent
6a31249ae7
commit
e348a48dd2
1 changed files with 7 additions and 1 deletions
|
@ -1,5 +1,11 @@
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://127.0.0.1:8069/;
|
if ($scheme = http) {
|
||||||
|
rewrite ^ https://$server_name$request_uri? permanent;
|
||||||
|
}
|
||||||
|
try_files $uri @#YNH_APP_INSTANCE_NAME#;
|
||||||
|
}
|
||||||
|
location @#YNH_APP_INSTANCE_NAME# {
|
||||||
|
proxy_pass http://127.0.0.1:8069;
|
||||||
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
|
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
|
||||||
proxy_buffers 16 64k;
|
proxy_buffers 16 64k;
|
||||||
proxy_buffer_size 128k;
|
proxy_buffer_size 128k;
|
||||||
|
|
Loading…
Reference in a new issue