This commit is contained in:
Administrator 2022-10-03 16:46:40 +03:00
parent 0348cf6cb1
commit f62a028e9b
4 changed files with 44 additions and 0 deletions

View File

@ -9,6 +9,7 @@ services:
- sprint-nginx
- swarmpit-nginx
- exchange-nginx
- b-jokes-nginx
ports:
- "80:80"
- "443:443"
@ -141,5 +142,7 @@ networks:
external: true
sprint-nginx:
external: true
b-jokes-nginx:
external: true
swarmpit-nginx:
external: true

View File

@ -9,6 +9,7 @@ services:
- sprint-nginx
- swarmpit-nginx
- exchange-nginx
- b-jokes-nginx
ports:
- "80:80"
- "443:443"
@ -141,5 +142,7 @@ networks:
external: true
sprint-nginx:
external: true
b-jokes-nginx:
external: true
swarmpit-nginx:
external: true

View File

@ -155,4 +155,23 @@ http {
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name b-jokes.develop.sprinthub.ru;
ssl_certificate /etc/nginx/fullchain.pem;
ssl_certificate_key /etc/nginx/privkey.pem;
add_header X-Frame-Options "SAMEORIGIN" always;
add_header X-XSS-Protection "1; mode=block" always;
add_header X-Content-Type-Options "nosniff" always;
add_header Referrer-Policy "no-refferer-when-downgrade" always;
add_header Content-Security-Policy "default-src * data: 'unsafe-eval' 'unsafe-inline'" always;
location / {
proxy_pass http://b-jokes-nginx:1238/;
}
}
}

View File

@ -183,4 +183,23 @@ http {
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name b-jokes.sprinthub.ru;
ssl_certificate /etc/nginx/fullchain.pem;
ssl_certificate_key /etc/nginx/privkey.pem;
add_header X-Frame-Options "SAMEORIGIN" always;
add_header X-XSS-Protection "1; mode=block" always;
add_header X-Content-Type-Options "nosniff" always;
add_header Referrer-Policy "no-refferer-when-downgrade" always;
add_header Content-Security-Policy "default-src * data: 'unsafe-eval' 'unsafe-inline'" always;
location / {
proxy_pass http://b-jokes-nginx:1238/;
}
}
}