-
Notifications
You must be signed in to change notification settings - Fork 4
/
site.conf
94 lines (70 loc) · 2.05 KB
/
site.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
ServerAdmin ${SERVER_ADMIN}
ServerName ${SERVER_NAME}
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogLevel ${LOG_LEVEL}
<VirtualHost _default_:${HTTPD_PORT}>
ErrorLog /dev/stdout
CustomLog "/dev/stdout" combined
Redirect / https://${SERVER_NAME}/
</VirtualHost>
<VirtualHost _default_:${SSL_HTTPD_PORT}>
DocumentRoot /app
<Directory "/app">
AllowOverride All
Order allow,deny
Allow from all
</Directory>
ErrorLog /dev/stdout
CustomLog "/dev/stdout" combined
SSLEngine on
SSLProxyEngine on
SSLCertificateFile "/etc/ssl/certs/server.crt"
SSLCertificateKeyFile "/etc/ssl/private/server.key"
SSLCertificateChainFile "/etc/ssl/certs/ca-bundle.crt"
<Location ${PROXY_PATH}>
Header set Access-Control-Allow-Origin "*"
${AUTH_TYPE}
${OIDC_CLAIM}
ProxyPass ${PROXY_URL}
ProxyPassReverse ${PROXY_URL}
</Location>
# <LocationMatch "${PROXY_PATH2}">
# Header set Access-Control-Allow-Origin "*"
#
# ${AUTH_TYPE2}
#
# ${OIDC_CLAIM2}
#
# ProxyPass ${PROXY_URL2}
# ProxyPassReverse ${PROXY_URL2}
# </LocationMatch>
<Location /workspaces>
${AUTH_TYPE2}
${OIDC_CLAIM2}
ProxyPass http://app:8080/workspaces
ProxyPassReverse http://app:8080/workspaces
</Location>
<Location /submissions>
${AUTH_TYPE2}
${OIDC_CLAIM2}
ProxyPass http://app:8080/submissions
ProxyPassReverse http://app:8080/submissions
</Location>
<Location /methodconfigs>
${AUTH_TYPE2}
${OIDC_CLAIM2}
ProxyPass http://app:8080/methodconfigs
ProxyPassReverse http://app:8080/methodconfigs
</Location>
<Location /entities>
${AUTH_TYPE2}
${OIDC_CLAIM2}
ProxyPass http://app:8080/entities
ProxyPassReverse http://app:8080/entities
</Location>
<Location ${CALLBACK_PATH}>
AuthType openid-connect
${OIDC_CLAIM}
</Location>
</VirtualHost>
# The end