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

Should be working !

This commit is contained in:
Limezy 2022-03-26 20:29:03 +07:00
parent 427ddaf7ee
commit c881641541
2 changed files with 10 additions and 9 deletions

View file

@ -1,5 +1,4 @@
MINIO_ROOT_USER=__APP__
MINIO_ROOT_PASSWORD=__MINIO_KEY__
MINIO_VOLUMES="__DATADIR__/"
MINIO_BROWSER_REDIRECT_URL=https://__DOMAIN__
MINIO_OPTS="-C __FINAL_PATH__/ --address 127.0.0.1:__PORT__ --console-address :__CONSOLE_PORT__"

View file

@ -1,11 +1,11 @@
location ~ ^/server(/?)(.*) {
location ~ ^/(api|login|styles|static|(?!.+/).*) {
# Force usage of https
# Force usage of https
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
}
proxy_pass http://127.0.0.1/$2:__PORT__/;
proxy_pass http://127.0.0.1:__CONSOLE_PORT__;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_cache_bypass $http_upgrade;
@ -18,16 +18,17 @@ location ~ ^/server(/?)(.*) {
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;
}
location / {
# Force usage of https
location ~ / {
# 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:__PORT__;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_cache_bypass $http_upgrade;
@ -40,4 +41,5 @@ location / {
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;
}
}