From de6437e494431faf78b7d0240233b386e430ac18 Mon Sep 17 00:00:00 2001 From: Muhammed Hussein karimi Date: Tue, 12 Oct 2021 08:08:07 +0330 Subject: [PATCH] Apply suggestion (nginx version and config) Co-authored-by: Adam Stachowicz --- ansible/roles/nginx/templates/docker-compose.yml | 2 +- ansible/roles/nginx/templates/nginx.conf | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/ansible/roles/nginx/templates/docker-compose.yml b/ansible/roles/nginx/templates/docker-compose.yml index 1e7abb859..02b367e45 100644 --- a/ansible/roles/nginx/templates/docker-compose.yml +++ b/ansible/roles/nginx/templates/docker-compose.yml @@ -3,6 +3,6 @@ services: nginx: network_mode: host restart: always - image: nginx:1.21.3-alpine + image: nginx:stable-alpine volumes: - '/compose/volumes/nginx/:/etc/nginx/' \ No newline at end of file diff --git a/ansible/roles/nginx/templates/nginx.conf b/ansible/roles/nginx/templates/nginx.conf index ad14a598e..3fb78fed0 100644 --- a/ansible/roles/nginx/templates/nginx.conf +++ b/ansible/roles/nginx/templates/nginx.conf @@ -18,7 +18,6 @@ http { default_type application/octet-stream; - ### SSL Settings for all servers (https://ssl-config.mozilla.org/#server=nginx&server-version=1.17.2&config=intermediate) # certs sent to the client in SERVER HELLO are concatenated in ssl_certificate ssl_certificate /etc/nginx/ssl/status.yoursite.fullchain.pem; @@ -53,7 +52,6 @@ http { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; - # Remove Headers that gonna be sent to client proxy_hide_header X-Powered-By; proxy_hide_header Server;