Xenith/libs/cpp-httplib-0.57.1/test/proxy/httpbin_nginx.conf
2026-09-29 19:55:06 +07:00

23 lines
424 B
Plaintext

server {
listen 80;
server_name httpbin;
location / {
proxy_pass http://httpbin_backend:8080;
proxy_set_header Host $host;
}
}
server {
listen 443 ssl;
server_name httpbin;
ssl_certificate /etc/nginx/certs/cert.pem;
ssl_certificate_key /etc/nginx/certs/key.pem;
location / {
proxy_pass http://httpbin_backend:8080;
proxy_set_header Host $host;
}
}