aboutsummaryrefslogtreecommitdiffstats
path: root/terminaldweller.com/main/nginx.conf
diff options
context:
space:
mode:
Diffstat (limited to 'terminaldweller.com/main/nginx.conf')
-rw-r--r--terminaldweller.com/main/nginx.conf9
1 files changed, 8 insertions, 1 deletions
diff --git a/terminaldweller.com/main/nginx.conf b/terminaldweller.com/main/nginx.conf
index 86cb085..1a9ea0e 100644
--- a/terminaldweller.com/main/nginx.conf
+++ b/terminaldweller.com/main/nginx.conf
@@ -3,6 +3,13 @@ events {
}
http {
server {
+ listen 8081;
+ location / {
+ root /srv/;
+ add_header Access-Control-Allow-Origin "*";
+ }
+ }
+ server {
listen 8080 ssl http2;
keepalive_timeout 70;
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
@@ -35,7 +42,7 @@ http {
add_header Access-Control-Allow-Origin "*";
}
location / {
- alias /srv/;
+ root /srv/;
add_header Access-Control-Allow-Origin "*";
}
}