diff --git a/conf.d/archivsap.conf b/conf.d/archivsap.conf new file mode 100644 index 0000000..9ad257d --- /dev/null +++ b/conf.d/archivsap.conf @@ -0,0 +1,21 @@ +server { + listen 80; + server_name saparchive.psi.ch; + return 301 https://$host$request_uri; +} + +server { + listen 443 ssl; + server_name saparchive.psi.ch; + + ssl_certificate /etc/nginx/certs/saparchive.psi.ch.crt; + ssl_certificate_key /etc/nginx/private/saparchive.psi.ch.key; + + location / { + proxy_pass http://tiacore-test:9443; + 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; + } +} diff --git a/docker-compose.yaml b/docker-compose.yaml index c8a456f..203feca 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -283,6 +283,29 @@ services: - backend - panda_maintenance_backend + tiacore: + container_name: tiacore-test + image: images.kgs-cloud.de/tia/core/saphttp:3.17.1 + volumes: + - /opt/webcontent/tiacore-test/config/license:/application/license + # - /opt/kgs/docker/tiacore-P/config/keystore:/application/ssl/keystore + - /opt/webcontent/tiacore-test/config:/application/config/ + # - /opt/kgs/docker/tiacore-P/data:/application/data + # - /opt/kgs/docker/certificates:/application/ssl + environment: + LOGGING_LEVEL_ROOT: INFO + # Authentifizierung für WebUI + WEBAPP_SECURITY_AUTH_BASIC_USERNAME: admin + WEBAPP_SECURITY_AUTH_BASIC_PASSWORD: "$$2a$$10$$5E1KpGIKSq6xuWmGf92bheB17V0l4fEMnVmYPqhWiazKddcx1TF/e" + + # SSL Keystore + # SERVER_PORT: 9443 + # SERVER_SSL_KEYSTORE: /application/ssl/core_keystore.p12 + # SERVER_SSL_KEYSTOREPASSWORD: changeme + # SERVER_SSL_KEYALIAS: kgs + # SERVER_SSL_ENABLED: "true" + networks: + - backend networks: public: