1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mattermost_ynh.git synced 2024-09-03 19:36:29 +02:00
This commit is contained in:
Éric Gaspar 2024-07-04 12:21:09 +02:00
parent a986570569
commit 9d2b2900cb
2 changed files with 8 additions and 3 deletions

View file

@ -43,7 +43,7 @@
"EnableMultifactorAuthentication": false,
"EnforceMultifactorAuthentication": false,
"EnableUserAccessTokens": false,
"AllowCorsFrom": "",
"AllowCorsFrom": "__DOMAIN__",
"CorsExposedHeaders": "",
"CorsAllowCredentials": false,
"CorsDebug": false,

View file

@ -21,9 +21,14 @@ location ~ ^__PATH__/api/v[0-9]+/(users/)?websocket$ {
proxy_pass http://127.0.0.1:__PORT__;
}
location __PATH__/ {
client_max_body_size 100M;
location ~* ^__PATH__/ {
client_max_body_size 250M;
proxy_set_header Connection "";
if ($request_method = HEAD) {
return 200;
}
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;