docker compose
This commit is contained in:
8
nginx/sites-available/backend.local.conf
Normal file
8
nginx/sites-available/backend.local.conf
Normal file
@@ -0,0 +1,8 @@
|
||||
server {
|
||||
listen 8080;
|
||||
|
||||
location / {
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_pass http://localhost:13200;
|
||||
}
|
||||
}
|
||||
1
nginx/sites-enabled/backend.local.conf
Symbolic link
1
nginx/sites-enabled/backend.local.conf
Symbolic link
@@ -0,0 +1 @@
|
||||
/etc/nginx/sites-available/backend.local.conf
|
||||
13
nginx/templates/default_cfg.conf.template
Normal file
13
nginx/templates/default_cfg.conf.template
Normal file
@@ -0,0 +1,13 @@
|
||||
server {
|
||||
listen 8080;
|
||||
|
||||
location / {
|
||||
proxy_pass http://backend:${BACKEND_PORT};
|
||||
|
||||
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 Testing-Header "$remote_addr $host";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user