commit
1beecfe48d
@ -5,6 +5,7 @@ services:
|
|||||||
image: mathwave/sprint-repo:sprint-infra-nginx-dev
|
image: mathwave/sprint-repo:sprint-infra-nginx-dev
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
|
- "443:443"
|
||||||
networks:
|
networks:
|
||||||
- battleship-nginx
|
- battleship-nginx
|
||||||
- sprint-nginx
|
- sprint-nginx
|
||||||
|
@ -5,6 +5,7 @@ services:
|
|||||||
image: mathwave/sprint-repo:sprint-infra-nginx-prod
|
image: mathwave/sprint-repo:sprint-infra-nginx-prod
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
|
- "443:443"
|
||||||
networks:
|
networks:
|
||||||
- battleship-nginx
|
- battleship-nginx
|
||||||
- sprint-nginx
|
- sprint-nginx
|
||||||
|
@ -31,9 +31,19 @@ http {
|
|||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 443 ssl http2;
|
||||||
|
listen [::]:443 ssl http2;
|
||||||
server_name battleship.develop.sprinthub.ru;
|
server_name battleship.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-Secure-Policy "default-src * data: 'unsafe-eval' 'unsafe-inline'" always;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://battleship-nginx:1236/;
|
proxy_pass http://battleship-nginx:1236/;
|
||||||
}
|
}
|
||||||
|
@ -1,2 +1,4 @@
|
|||||||
FROM nginx
|
FROM nginx
|
||||||
COPY ./nginx-prod.conf /etc/nginx/nginx.conf
|
COPY ./nginx-prod.conf /etc/nginx/nginx.conf
|
||||||
|
COPY ./privkey.pem /etc/nginx/privkey.pem
|
||||||
|
COPY ./fullchain.pem /etc/nginx/fullchain.pem
|
@ -40,9 +40,19 @@ http {
|
|||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 443 ssl http2;
|
||||||
|
listen [::]:443 ssl http2;
|
||||||
server_name battleship.sprinthub.ru;
|
server_name battleship.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-Secure-Policy "default-src * data: 'unsafe-eval' 'unsafe-inline'" always;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://battleship-nginx:1236/;
|
proxy_pass http://battleship-nginx:1236/;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user