forked from linux/WebHosting
Install Elog for LAC and LMX labs
Signed-off-by: Basil Bruhn <basil.bruhn@psi.ch>
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name lac-elog.psi.ch;
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
server_name lac-elog.psi.ch;
|
||||
|
||||
client_max_body_size 64M;
|
||||
sendfile on;
|
||||
tcp_nopush on;
|
||||
tcp_nodelay on;
|
||||
keepalive_timeout 65;
|
||||
types_hash_max_size 4096;
|
||||
|
||||
ssl_certificate /etc/nginx/certs/lac-elog.psi.ch.crt;
|
||||
ssl_certificate_key /etc/nginx/private/lac-elog.psi.ch.key;
|
||||
|
||||
location / {
|
||||
proxy_pass https://lac-elog:8080;
|
||||
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;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name lmx-elog.psi.ch;
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
server_name lmx-elog.psi.ch;
|
||||
|
||||
client_max_body_size 64M;
|
||||
sendfile on;
|
||||
tcp_nopush on;
|
||||
tcp_nodelay on;
|
||||
keepalive_timeout 65;
|
||||
types_hash_max_size 4096;
|
||||
|
||||
ssl_certificate /etc/nginx/certs/lmx-elog.psi.ch.crt;
|
||||
ssl_certificate_key /etc/nginx/private/lmx-elog.psi.ch.key;
|
||||
|
||||
location / {
|
||||
proxy_pass https://lmx-elog:8080;
|
||||
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;
|
||||
}
|
||||
}
|
||||
@@ -64,6 +64,30 @@ services:
|
||||
networks:
|
||||
- backend
|
||||
|
||||
# benjamin.brem@psi.ch - LAC
|
||||
# Elog instance
|
||||
lac-elog:
|
||||
image: gitea.psi.ch/images/elog:3.1.5
|
||||
container_name: lac-elog
|
||||
restart: always
|
||||
volumes:
|
||||
- /opt/logbooks/lac:/usr/local/elog/logbooks
|
||||
- /opt/webcontent/lac/elog.cfg:/usr/local/elog/elogd.cfg
|
||||
networks:
|
||||
- backend
|
||||
|
||||
# valerio.scagnoli@psi.ch - LMX
|
||||
# Elog instance
|
||||
lmx-elog:
|
||||
image: gitea.psi.ch/images/elog:3.1.5
|
||||
container_name: lmx-elog
|
||||
restart: always
|
||||
volumes:
|
||||
- /opt/logbooks/lmx:/usr/local/elog/logbooks
|
||||
- /opt/webcontent/lmx/elog.cfg:/usr/local/elog/elogd.cfg
|
||||
networks:
|
||||
- backend
|
||||
|
||||
# Rostomyan Tigran <tigran.rostomyan@psi.ch>
|
||||
# INC0137443
|
||||
# Elog instance
|
||||
|
||||
Reference in New Issue
Block a user