Merge pull request 'simple docker mount and sls2' (#23) from sls2 into main

Reviewed-on: linux/WebHosting#23
This commit is contained in:
2025-11-25 16:23:07 +01:00
committed by Gitea
3 changed files with 42 additions and 4 deletions

14
apache/conf/sls2.conf Normal file
View File

@@ -0,0 +1,14 @@
<VirtualHost *:80>
ServerName sls2.psi.ch
DocumentRoot /var/www/sls2
Options +Includes
<Directory "/var/www/sls2">
Options +Includes
AllowOverride None
Require all granted
</Directory>
</VirtualHost>

27
conf.d/sls2.conf Normal file
View File

@@ -0,0 +1,27 @@
server {
listen 80;
server_name sls2.psi.ch;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
server_name sls2.psi.ch;
ssl_certificate /etc/nginx/certs/sls2.psi.ch.crt;
ssl_certificate_key /etc/nginx/private/sls2.psi.ch.key;
access_log /var/log/nginx/sls2.access.log;
error_log /var/log/nginx/sls2.error.log;
location / {
proxy_pass http://apache_app:80;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}

View File

@@ -36,10 +36,7 @@ services:
- /mount/srem/webhosting:/var/www/srem:rw
- /opt/webcontent/gfa-status:/var/www/gfa-status:rw
- /opt/webcontent/fluid-eos:/var/www/fluid-eos:rw
- ./apache/conf/rfmwtools.conf:/etc/apache2/sites-enabled/rfmwtools.conf:ro
- ./apache/conf/srem.conf:/etc/apache2/sites-enabled/srem.conf:ro
- ./apache/conf/gfa-status.conf:/etc/apache2/sites-enabled/gfa-status.conf:ro
- ./apache/conf/fluid-eos.conf:/etc/apache2/sites-enabled/fluid-eos.conf:ro
- ./apache/conf:/etc/apache2/sites-enabled:ro
networks:
- backend