diff --git a/config/nginx.conf b/config/nginx.conf deleted file mode 100644 index e69de29..0000000 diff --git a/config/ort.conf b/config/ort.conf new file mode 100644 index 0000000..fe09733 --- /dev/null +++ b/config/ort.conf @@ -0,0 +1,21 @@ +server { + listen 8000; + listen [::]:8000; + server_name oldrabbit.town; + + #access_log /var/log/nginx/host.access.log main; + + location / { + root /usr/share/nginx/html; + index index.html index.htm; + } + #error_page 404 /404.html; + + # redirect server error pages to the static page /50x.html + # + error_page 500 502 503 504 /50x.html; + location = /50x.html { + root /usr/share/nginx/html; + } + +} \ No newline at end of file diff --git a/docker-compose.yaml b/docker-compose.yaml index 96ff517..100645c 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -2,6 +2,7 @@ services: nginx: image: nginx ports: - - 8000:80 + - 8000:8000 volumes: - - ./src:/usr/share/nginx/html \ No newline at end of file + - ./src:/usr/share/nginx/html + - ./config:/etc/nginx/conf.d \ No newline at end of file