1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/minio_ynh.git synced 2024-09-03 19:46:18 +02:00

remove https force

This commit is contained in:
yalh76 2022-03-27 03:44:08 +02:00
parent 9f200d1432
commit daf1161067

View file

@ -1,11 +1,6 @@
rewrite ^$ /; rewrite ^$ /;
location ~ ^(/api|/login|/styles|/static|/manifest.json|/$) { location ~ ^(/api|/login|/styles|/static|/manifest.json|/$) {
# Force usage of https
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
}
proxy_pass http://127.0.0.1:__CONSOLE_PORT__; proxy_pass http://127.0.0.1:__CONSOLE_PORT__;
proxy_http_version 1.1; proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
@ -24,11 +19,6 @@ location ~ ^(/api|/login|/styles|/static|/manifest.json|/$) {
location ~ / { location ~ / {
# Force usage of https
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
}
proxy_pass http://127.0.0.1:__PORT__; proxy_pass http://127.0.0.1:__PORT__;
proxy_http_version 1.1; proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;