-
Notifications
You must be signed in to change notification settings - Fork 1
/
default.tmpl
33 lines (29 loc) · 991 Bytes
/
default.tmpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
ServerName {{ .Env.SERVER_NAME }}
<VirtualHost *:{{ .Env.LISTEN_PORT }}>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Location "/galaxy/api/">
Satisfy Any
Allow from all
</Location>
ProxyPass / http://{{ .Env.BACKEND_NAME }}:{{ .Env.BACKEND_PORT }}/ retry=0
<Location "/galaxy">
AuthName "CAS"
AuthType CAS
Require valid-user
# Because galaxy doesn't handle byte-range requests properly
##XSendFile on
##XSendFilePath /
# Append mail domain
RequestHeader edit CAS-User $ @{{ .Env.DOMAIN }}
RequestHeader set X-URL-SCHEME http
ProxyPassReverse http://{{ .Env.BACKEND_NAME }}:{{ .Env.BACKEND_PORT }}/
</Location>
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet