forked from galaxyproject/galaxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgalaxy.conf
33 lines (27 loc) · 1.05 KB
/
galaxy.conf
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
<VirtualHost *:80>
# allow up to 3 minutes for Galaxy to respond to slow requests before timing out
ProxyTimeout 180
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
Header set Access-Control-Allow-Origin "*"
Header set Access-Control-Allow-Methods "GET, POST, DELETE, PUT"
Header set Access-Control-Allow-Credentials "true"
Header set Access-Control-Allow-Headers "origin, content-type, accept, authorization"
<Location /nativeGalaxy>
AuthType basic
AuthName Galaxy-Protected
AuthBasicProvider file
AuthUserFile /etc/apache2/htpasswd
AuthBasicFake [email protected] admin1234
Require valid-user
# Take the $REMOTE_USER environment variable and set it as a header in the proxy request.
RewriteCond %{IS_SUBREQ} ^false$
RewriteCond %{LA-U:REMOTE_USER} (.+)
RewriteRule . - [E=RU:%1]
RequestHeader set REMOTE_USER %{RU}e
</Location>
ProxyPass /nativeGalaxy uwsgi://127.0.0.1:4001/
ProxyPass /api uwsgi://127.0.0.1:4001/api
</VirtualHost>