aboutsummaryrefslogtreecommitdiff
path: root/deploy/code-host/nginx-app.monzero.org.conf
diff options
context:
space:
mode:
authorMonzero Build System <builds@monzero.org>2026-08-15 22:02:03 +0100
committerMonzero Build System <builds@monzero.org>2026-08-15 22:02:03 +0100
commit30cce40b48e86bb92146378a1a8178d774d65a71 (patch)
treeccf51422964f817a1a9e8efee1094903d5aef928 /deploy/code-host/nginx-app.monzero.org.conf
parent310832fe087427fc01af504821190c2482a438d7 (diff)
downloadmonzero-core-30cce40b48e86bb92146378a1a8178d774d65a71.tar.gz
monzero-core-30cce40b48e86bb92146378a1a8178d774d65a71.tar.xz
monzero-core-30cce40b48e86bb92146378a1a8178d774d65a71.zip
Launch gated Monzero Studio beta
Diffstat (limited to 'deploy/code-host/nginx-app.monzero.org.conf')
-rw-r--r--deploy/code-host/nginx-app.monzero.org.conf27
1 files changed, 27 insertions, 0 deletions
diff --git a/deploy/code-host/nginx-app.monzero.org.conf b/deploy/code-host/nginx-app.monzero.org.conf
new file mode 100644
index 000000000..776489630
--- /dev/null
+++ b/deploy/code-host/nginx-app.monzero.org.conf
@@ -0,0 +1,27 @@
+server {
+ listen 80;
+ listen [::]:80;
+ server_name app.monzero.org;
+
+ root /var/www/monzero-app;
+ index index.html;
+
+ add_header X-Content-Type-Options nosniff always;
+ add_header X-Frame-Options DENY always;
+ add_header Referrer-Policy no-referrer always;
+ add_header Permissions-Policy "camera=(), microphone=(), geolocation=()" always;
+ add_header Content-Security-Policy "default-src 'self'; connect-src 'self'; img-src 'self' data:; style-src 'self'; script-src 'self'; base-uri 'none'; form-action 'self'; frame-ancestors 'none'" always;
+
+ location = /api/node/get_info {
+ limit_except POST { deny all; }
+ proxy_pass http://127.0.0.1:6175/get_info;
+ proxy_set_header Content-Type application/json;
+ proxy_set_header Host 127.0.0.1;
+ proxy_connect_timeout 2s;
+ proxy_read_timeout 5s;
+ }
+
+ location / {
+ try_files $uri $uri/ /index.html;
+ }
+}