Browse Source

Update Nginx config for Nanobox apps (#9310)

The Nanobox files have gotten out of sync, a touch, with what Masto needs for Nginx settings. This PR updates them accordingly.
Dan Hunsaker 3 weeks ago
parent
commit
c0736c466c
3 changed files with 4 additions and 4 deletions
  1. 1
    1
      nanobox/nginx-local.conf
  2. 1
    1
      nanobox/nginx-stream.conf.erb
  3. 2
    2
      nanobox/nginx-web.conf.erb

+ 1
- 1
nanobox/nginx-local.conf View File

@@ -38,7 +38,7 @@ http {
38 38
 
39 39
         root /app/public;
40 40
 
41
-        client_max_body_size 8M;
41
+        client_max_body_size 80M;
42 42
 
43 43
         location / {
44 44
             try_files $uri @rails;

+ 1
- 1
nanobox/nginx-stream.conf.erb View File

@@ -32,7 +32,7 @@ http {
32 32
         listen 8080;
33 33
 
34 34
         add_header Strict-Transport-Security "max-age=31536000";
35
-        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";
35
+        # 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";
36 36
 
37 37
         root /app/public;
38 38
 

+ 2
- 2
nanobox/nginx-web.conf.erb View File

@@ -32,11 +32,11 @@ http {
32 32
         listen 8080;
33 33
 
34 34
         add_header Strict-Transport-Security "max-age=31536000";
35
-        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";
35
+        # 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";
36 36
 
37 37
         root /app/public;
38 38
 
39
-        client_max_body_size 8M;
39
+        client_max_body_size 80M;
40 40
 
41 41
         location / {
42 42
             try_files $uri @rails;