]> cat aescling's git repositories - mastodon.git/commitdiff
Update Nginx config for Nanobox apps (#9310)
authorDan Hunsaker <danhunsaker@gmail.com>
Tue, 20 Nov 2018 21:24:35 +0000 (14:24 -0700)
committerEugen Rochko <eugen@zeonfederated.com>
Tue, 20 Nov 2018 21:24:35 +0000 (22:24 +0100)
The Nanobox files have gotten out of sync, a touch, with what Masto needs for Nginx settings. This PR updates them accordingly.

nanobox/nginx-local.conf
nanobox/nginx-stream.conf.erb
nanobox/nginx-web.conf.erb

index f56339cac9b5faea16cc287fd8e355e05ea34b20..c0e883603d2b0026ffb4e3b1b13226ac50786c75 100644 (file)
@@ -38,7 +38,7 @@ http {
 
         root /app/public;
 
-        client_max_body_size 8M;
+        client_max_body_size 80M;
 
         location / {
             try_files $uri @rails;
index 2a047dd9f6dd5180df0f60cbeb751db0da18780e..12bcc8ca53ab5ba63074e797790753505af797bb 100644 (file)
@@ -32,7 +32,7 @@ http {
         listen 8080;
 
         add_header Strict-Transport-Security "max-age=31536000";
-        add_header Content-Security-Policy "style-src 'self' 'unsafe-inline'; script-src 'self'; object-src 'self'; img-src data: https:; media-src data: https:; connect-src 'self' wss://<%= ENV["LOCAL_DOMAIN"] %>; upgrade-insecure-requests";
+        add_header Content-Security-Policy "style-src 'self' 'unsafe-inline'; script-src 'self'; object-src 'self'; img-src data: https:; media-src data: https:; connect-src 'self' wss://<%= ENV["LOCAL_DOMAIN"] %>; upgrade-insecure-requests";
 
         root /app/public;
 
index 797201eabf83561cc405f1cd4dedc8174ce2fd07..d96f1bfc7a740cfe90b60bb769b24e4f1eeb9968 100644 (file)
@@ -32,11 +32,11 @@ http {
         listen 8080;
 
         add_header Strict-Transport-Security "max-age=31536000";
-        add_header Content-Security-Policy "style-src 'self' 'unsafe-inline'; script-src 'self'; object-src 'self'; img-src data: https:; media-src data: https:; connect-src 'self' wss://<%= ENV["LOCAL_DOMAIN"] %>; upgrade-insecure-requests";
+        add_header Content-Security-Policy "style-src 'self' 'unsafe-inline'; script-src 'self'; object-src 'self'; img-src data: https:; media-src data: https:; connect-src 'self' wss://<%= ENV["LOCAL_DOMAIN"] %>; upgrade-insecure-requests";
 
         root /app/public;
 
-        client_max_body_size 8M;
+        client_max_body_size 80M;
 
         location / {
             try_files $uri @rails;