forked from linux/WebHosting
Add a [OpenMaint](https://www.openmaint.org/en/home) instance using the Docker images and compose from https://github.com/itmicus/cmdbuild_docker. Reviewed-on: linux/WebHosting#14 Reviewed-by: bruhn_b <basil.bruhn@psi.ch> Co-authored-by: Konrad Bucheli <konrad.bucheli@psi.ch> Co-committed-by: Konrad Bucheli <konrad.bucheli@psi.ch>
22 lines
619 B
Plaintext
22 lines
619 B
Plaintext
server {
|
|
listen 80;
|
|
server_name panda-maintenance.psi.ch;
|
|
return 301 https://$host$request_uri;
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl;
|
|
server_name panda-maintenance.psi.ch;
|
|
|
|
ssl_certificate /etc/nginx/certs/panda-maintenance.psi.ch.crt;
|
|
ssl_certificate_key /etc/nginx/private/panda-maintenance.psi.ch.key;
|
|
|
|
location / {
|
|
proxy_pass http://panda-maintenance-app:8080/cmdbuild;
|
|
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;
|
|
}
|
|
}
|