This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
idhub-docker/docker/nginx-orchestra-api.nginx.conf

37 lines
1.2 KiB
Plaintext
Raw Permalink Normal View History

user www-data;
worker_processes auto;
pid /run/nginx.pid;
error_log /var/log/nginx/error.log;
include /etc/nginx/modules-enabled/*.conf;
events {
worker_connections 768;
# multi_accept on;
}
http {
server {
listen 3000;
listen [::]:3000;
#server_name orchestra.example.org;
location / {
# TODO env var on proxy_pass
proxy_pass http://orchestra:9080/api/;
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 ~* ^/(admin/|admin_tools/|api/|api-auth/|api-token-auth/|static/) {
# TODO env var on proxy_pass
proxy_pass http://orchestra:9080;
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;
}
}
}