1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/snserver_ynh.git synced 2024-09-03 20:26:22 +02:00

Fix: remove unnecessary http->https redirect in nginx.conf

This commit is contained in:
Fabian Wilkens 2021-11-23 21:11:51 +01:00
parent 5680fa1837
commit 3284923237
No known key found for this signature in database
GPG key ID: 23DFA025BB4E9FAB

View file

@ -1,8 +1,4 @@
location __PATH__/ {
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
}
proxy_pass http://127.0.0.1:__PORT_API_GATEWAY__/;
proxy_http_version 1.1;
proxy_set_header Host $http_host;
@ -24,10 +20,6 @@ location = __PATH__/help {
location __PATH__/help/ {
alias __FINAL_PATH_WWW__/help/;
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
}
# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
}
@ -44,10 +36,6 @@ location = __PATH__/extensions/ {
location __PATH__/extensions/ {
alias __FINAL_PATH_EXTENSIONS__/;
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
}
if ($request_method = 'OPTIONS') {
more_set_headers 'Access-Control-Allow-Origin: $http_origin';
more_set_headers 'Access-Control-Allow-Methods: GET, POST, OPTIONS, PUT, DELETE, HEAD';