mirror of
https://github.com/Routstr/routstr-core.git
synced 2026-10-30 15:48:37 +00:00
26 lines
645 B
Nginx Configuration File
26 lines
645 B
Nginx Configuration File
events {
|
|
worker_connections 1024;
|
|
}
|
|
|
|
http {
|
|
resolver 127.0.0.11 valid=10s;
|
|
|
|
server {
|
|
listen 80;
|
|
|
|
location / {
|
|
set $routstr_host "routstr";
|
|
proxy_pass http://$routstr_host:8000;
|
|
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;
|
|
}
|
|
|
|
location /health {
|
|
set $routstr_host "routstr";
|
|
proxy_pass http://$routstr_host:8000/health;
|
|
access_log off;
|
|
}
|
|
}
|
|
} |