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:
parent
5680fa1837
commit
3284923237
1 changed files with 0 additions and 12 deletions
|
@ -1,8 +1,4 @@
|
||||||
location __PATH__/ {
|
location __PATH__/ {
|
||||||
if ($scheme = http) {
|
|
||||||
rewrite ^ https://$server_name$request_uri? permanent;
|
|
||||||
}
|
|
||||||
|
|
||||||
proxy_pass http://127.0.0.1:__PORT_API_GATEWAY__/;
|
proxy_pass http://127.0.0.1:__PORT_API_GATEWAY__/;
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_set_header Host $http_host;
|
proxy_set_header Host $http_host;
|
||||||
|
@ -24,10 +20,6 @@ location = __PATH__/help {
|
||||||
location __PATH__/help/ {
|
location __PATH__/help/ {
|
||||||
alias __FINAL_PATH_WWW__/help/;
|
alias __FINAL_PATH_WWW__/help/;
|
||||||
|
|
||||||
if ($scheme = http) {
|
|
||||||
rewrite ^ https://$server_name$request_uri? permanent;
|
|
||||||
}
|
|
||||||
|
|
||||||
# Include SSOWAT user panel.
|
# Include SSOWAT user panel.
|
||||||
include conf.d/yunohost_panel.conf.inc;
|
include conf.d/yunohost_panel.conf.inc;
|
||||||
}
|
}
|
||||||
|
@ -44,10 +36,6 @@ location = __PATH__/extensions/ {
|
||||||
location __PATH__/extensions/ {
|
location __PATH__/extensions/ {
|
||||||
alias __FINAL_PATH_EXTENSIONS__/;
|
alias __FINAL_PATH_EXTENSIONS__/;
|
||||||
|
|
||||||
if ($scheme = http) {
|
|
||||||
rewrite ^ https://$server_name$request_uri? permanent;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($request_method = 'OPTIONS') {
|
if ($request_method = 'OPTIONS') {
|
||||||
more_set_headers 'Access-Control-Allow-Origin: $http_origin';
|
more_set_headers 'Access-Control-Allow-Origin: $http_origin';
|
||||||
more_set_headers 'Access-Control-Allow-Methods: GET, POST, OPTIONS, PUT, DELETE, HEAD';
|
more_set_headers 'Access-Control-Allow-Methods: GET, POST, OPTIONS, PUT, DELETE, HEAD';
|
||||||
|
|
Loading…
Add table
Reference in a new issue