Merge pull request 'Add carculator service' (#4) from sacchi_r/WebHosting:add-carculator into main

Reviewed-on: linux/WebHosting#4
Reviewed-by: bruhn_b <basil.bruhn@psi.ch>
This commit is contained in:
2025-08-05 10:36:47 +02:00
2 changed files with 28 additions and 0 deletions

19
conf.d/carculator.conf Normal file
View File

@@ -0,0 +1,19 @@
server {
listen 80;
server_name carculator-api-test.psi.ch;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
server_name carculator-api-test.psi.ch;
location / {
proxy_pass http://carculator:8000;
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;
}
}

View File

@@ -58,6 +58,15 @@ services:
networks:
- backend
# Romain Sacchi <romain.sacchi@psi.ch>
# Software host and access to the Internet
carculator:
image: gitea.psi.ch/sacchi_r/carculator:0.1.0
container_name: carculator
restart: always
networks:
- backend
# Augustin Sven <sven.augustin@psi.ch>
hedgedoc_app:
image: quay.io/hedgedoc/hedgedoc:1.10.1