From 0d2c5c4b8d9708cfe6d8cd7f063b54c0bd4c09cb Mon Sep 17 00:00:00 2001 From: Redume Date: Sat, 19 Oct 2024 09:04:43 +0300 Subject: [PATCH] =?UTF-8?q?Revert=20"=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20nginx"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit d0b71824 --- docker-compose.yaml | 11 ----------- nginx.conf | 31 ------------------------------- 2 files changed, 42 deletions(-) delete mode 100644 nginx.conf diff --git a/docker-compose.yaml b/docker-compose.yaml index a4c5557..b5f7878 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,15 +1,4 @@ services: - nginx: - image: nginx:latest - ports: - - '80:80' - - '443:443' - volumes: - - ./nginx.conf:/etc/nginx/nginx.conf - - ./CertSSL:/etc/nginx/ssl - depends_on: - - starlio-web - starlio-web: build: . ports: diff --git a/nginx.conf b/nginx.conf deleted file mode 100644 index 9aa64dc..0000000 --- a/nginx.conf +++ /dev/null @@ -1,31 +0,0 @@ -events { } - -http { - server { - listen 80 default_server; - listen [::]:80 default_server; - server_name example.com; - - location / { - return 301 https://$host$request_uri; - } - } - - server { - listen 443 ssl; - listen [::]:443 ssl; - http2 on; - server_name example.com; - - ssl_certificate /etc/nginx/ssl/fullchain.pem; - ssl_certificate_key /etc/nginx/ssl/privkey.pem; - ssl_session_timeout 1d; - ssl_session_cache shared:MozSSL:10m; - - ssl_protocols TLSv1.3; - ssl_prefer_server_ciphers off; - - add_header Strict-Transport-Security "max-age=63072000" always; - - } -} \ No newline at end of file