This commit is contained in:
Qwerty 2024-08-24 18:09:38 +03:00
commit aa14a85127
2 changed files with 26 additions and 0 deletions

10
docker-compose.yml Normal file
View File

@ -0,0 +1,10 @@
version: '3'
services:
nginx:
image: nginx:latest
container_name: nginx-reverse-proxy
ports:
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
restart: always

16
nginx.conf Normal file
View File

@ -0,0 +1,16 @@
events {}
http {
server {
listen 80;
server_name git.evil-bird.ru;
location / {
proxy_pass http://10.10.1.10:3000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
}