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.
tags/v2.6.2
Dan Hunsaker 10 months 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 {

root /app/public;

client_max_body_size 8M;
client_max_body_size 80M;

location / {
try_files $uri @rails;

+ 1
- 1
nanobox/nginx-stream.conf.erb View 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;


+ 2
- 2
nanobox/nginx-web.conf.erb View 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;

Loading…
Cancel
Save