diff --git a/config/nginx.conf b/config/nginx.conf index dc4efbbc..5b5a4614 100644 --- a/config/nginx.conf +++ b/config/nginx.conf @@ -96,8 +96,8 @@ server { # Not sending ACAO header because it is already being added by the upstream #add_header 'Access-Control-Allow-Origin' '*' always; add_header 'Access-Control-Allow-Credentials' 'true' always; - add_header 'Access-Control-Allow-Headers' '*' always; add_header 'Access-Control-Allow-Methods' '*' always; + add_header 'Access-Control-Allow-Headers' '*' always; add_header 'Access-Control-Max-Age' 1728000 always; if ($request_method = 'OPTIONS') { @@ -110,4 +110,14 @@ server { proxy_set_header X-forward-for $proxy_add_x_forwarded_for; proxy_pass http://blockchain:4500$1$is_args$args; } + + location /files/ { + add_header 'Access-Control-Allow-Origin' '*' always; + add_header 'Access-Control-Allow-Credentials' 'true' always; + add_header 'Access-Control-Allow-Methods' '*' always; + add_header 'Access-Control-Allow-Headers' '*' always; + add_header 'Access-Control-Max-Age' 1728000 always; + + root /; + } } diff --git a/docker-compose.yml b/docker-compose.yml index bb8f45b3..9b02e6fc 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -23,6 +23,7 @@ services: - /etc/letsencrypt/live/cardchain.crowdcontrol.network/privkey.pem:/etc/letsencrypt/live/cardchain.crowdcontrol.network/privkey.pem - ./config/nginx.conf:/etc/nginx/conf.d/default.conf - /etc/nginx/ssl/dhparam-4096.pem:/etc/nginx/ssl/dhparam-4096.pem + - ./files/:/files/ ports: - 80:80 - 81:81 diff --git a/scripts/paramchange.json b/scripts/paramchange.json new file mode 100644 index 00000000..180197ba --- /dev/null +++ b/scripts/paramchange.json @@ -0,0 +1,12 @@ +{ + "title": "Param change commonsPerPack: 4", + "description": "We want to change the commonsPerPack", + "changes": [ + { + "subspace": "cardchain", + "key": "CommonsPerPack", + "value": "4" + } + ], + "deposit": "10000000ubpf" +}