diff --git a/srcs/configs/nginx/templates/test.conf.template b/srcs/configs/nginx/templates/test.conf.template deleted file mode 100644 index 7e5686e..0000000 --- a/srcs/configs/nginx/templates/test.conf.template +++ /dev/null @@ -1,26 +0,0 @@ -server { - listen 8443 ssl; - - server_name _; - - root /var/www/wordpress; - index index.php; - - ssl_certificate $NGINX_SSL_CERT_FILE; - ssl_certificate_key $NGINX_SSL_KEY_FILE; - ssl_protocols TLSv1.2 TLSv1.3; - ssl_session_timeout 10m; - - keepalive_timeout 60; - - location / { - try_files $${q}uri $${q}uri/ =404; - } - - location ~ \.php$ { - fastcgi_pass $NGINX_PHP_HOST:9000; - fastcgi_index index.php; - fastcgi_split_path_info ^(.+\.php)(/.+)$; - include fastcgi.conf; - } -} diff --git a/srcs/docker-compose.yml b/srcs/docker-compose.yml index 273ff8f..1e77fba 100644 --- a/srcs/docker-compose.yml +++ b/srcs/docker-compose.yml @@ -130,7 +130,7 @@ services: static-site: build: docker/bonus/static-site - container_name: inception-kanel-supremacy + container_name: inception-static-site ports: - 8443:443 depends_on: diff --git a/srcs/docker/nginx/Dockerfile b/srcs/docker/nginx/Dockerfile index 4bda2f3..fdd8d37 100644 --- a/srcs/docker/nginx/Dockerfile +++ b/srcs/docker/nginx/Dockerfile @@ -43,6 +43,6 @@ WORKDIR /etc/nginx STOPSIGNAL SIGQUIT -EXPOSE 80 +#EXPOSE 80 CMD [ "nginx", "-g", "daemon off;" ] HEALTHCHECK --interval=30s --timeout=10s --retries=3 --start-period=60s --start-interval=5s CMD curl http://127.0.0.1:80/health || exit 1