From c81052b70888eb18dca82e33444ebbd9910f5ebc Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Sat, 14 Jan 2023 08:00:53 +0330 Subject: update --- terminaldweller.com/main/docker-compose.yaml | 1 + terminaldweller.com/main/nginx.conf | 9 ++++++++- terminaldweller.com/main/srv/index.html | 27 ++++++++++++++++++++------- 3 files changed, 29 insertions(+), 8 deletions(-) (limited to 'terminaldweller.com/main') diff --git a/terminaldweller.com/main/docker-compose.yaml b/terminaldweller.com/main/docker-compose.yaml index 2f927c0..7d73795 100644 --- a/terminaldweller.com/main/docker-compose.yaml +++ b/terminaldweller.com/main/docker-compose.yaml @@ -6,6 +6,7 @@ services: - mainnet ports: - "7773:8080" + - "127.0.0.1:7774:8081" restart: unless-stopped volumes: - ./nginx.conf:/etc/nginx/nginx.conf:ro 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 @@ -2,6 +2,13 @@ events { worker_connections 1024; } http { + server { + listen 8081; + location / { + root /srv/; + add_header Access-Control-Allow-Origin "*"; + } + } server { listen 8080 ssl http2; keepalive_timeout 70; @@ -35,7 +42,7 @@ http { add_header Access-Control-Allow-Origin "*"; } location / { - alias /srv/; + root /srv/; add_header Access-Control-Allow-Origin "*"; } } diff --git a/terminaldweller.com/main/srv/index.html b/terminaldweller.com/main/srv/index.html index e66fdd3..dc1a110 100644 --- a/terminaldweller.com/main/srv/index.html +++ b/terminaldweller.com/main/srv/index.html @@ -3,6 +3,7 @@ + main