20 lines
556 B
Plaintext
20 lines
556 B
Plaintext
server {
|
|
listen 80;
|
|
server_name ${localhost};
|
|
|
|
# rewrite ^(.*) https://${localhost}$1 permanent;
|
|
|
|
location / {
|
|
proxy_set_header X-FORWARDED-FOR $remote_addr;
|
|
proxy_set_header X-FORWARDED-PROTO $scheme;
|
|
proxy_set_header Host $http_host;
|
|
proxy_pass http://blog:4000;
|
|
}
|
|
|
|
location /twikoo {
|
|
proxy_pass http://blog-twikoo:8080;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
}
|
|
|
|
} |