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
pedro 27742db4fb init with previous work
this repo is a reinitialization with a change in the concept

previous repo had git subtree of django-musician and django-orchestra,
that was too static for our interest

next approach is a script that pulls git repos, and that would be
needed if you want to build everything, if not, just with the docker
compose you would have enough for running the containers, hence,
downloading the images from the docker registry
2023-10-10 10:07:46 +02:00

37 lines
1.2 KiB
Plaintext

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;
}
}
}