diff options
author | terminaldweller <thabogre@gmail.com> | 2023-01-14 04:30:53 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2023-01-14 04:30:53 +0000 |
commit | c81052b70888eb18dca82e33444ebbd9910f5ebc (patch) | |
tree | 6b6eb892438a15f7b4849d7508d61d9491b809c3 /terminaldweller.com/main/nginx.conf | |
parent | update (diff) | |
download | scripts-c81052b70888eb18dca82e33444ebbd9910f5ebc.tar.gz scripts-c81052b70888eb18dca82e33444ebbd9910f5ebc.zip |
update
Diffstat (limited to '')
-rw-r--r-- | terminaldweller.com/main/nginx.conf | 9 |
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 "*"; } } |