forked from linux/WebHosting
Rename service name from carculator to swiss-ecargo because this is a special version of carculator and we want to reserve the carculator name for later.
This commit is contained in:
@@ -1,16 +1,16 @@
|
|||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name carculator-api-test.psi.ch;
|
server_name swiss-ecargo-api-test.psi.ch;
|
||||||
return 301 https://$host$request_uri;
|
return 301 https://$host$request_uri;
|
||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 443 ssl;
|
listen 443 ssl;
|
||||||
server_name carculator-api-test.psi.ch;
|
server_name swiss-ecargo-api-test.psi.ch;
|
||||||
|
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://carculator:8000;
|
proxy_pass http://swiss-ecargo:8000;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
+3
-3
@@ -60,9 +60,9 @@ services:
|
|||||||
|
|
||||||
# Romain Sacchi <romain.sacchi@psi.ch>
|
# Romain Sacchi <romain.sacchi@psi.ch>
|
||||||
# Software host and access to the Internet
|
# Software host and access to the Internet
|
||||||
carculator:
|
swiss-ecargo:
|
||||||
image: gitea.psi.ch/sacchi_r/carculator:0.1.0
|
image: gitea.psi.ch/sacchi_r/swiss-ecargo:0.1.0
|
||||||
container_name: carculator
|
container_name: swiss-ecargo
|
||||||
restart: always
|
restart: always
|
||||||
networks:
|
networks:
|
||||||
- backend
|
- backend
|
||||||
|
|||||||
Reference in New Issue
Block a user