This repository was archived by the owner on Dec 31, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproxy.conf
executable file
·87 lines (71 loc) · 2.61 KB
/
proxy.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
ProxyRequests Off
# RequestHeader set Origin http://${TARGET_FQDN}:${TARGET_PORT}${TARGET_PATH}
# for custom error page
ProxyPass /errors !
#server /data folder directly
ProxyPass /data !
#for apache icons
ProxyPass /icons !
# # Trying to proxy WS requests
ProxyPass /ipython/api/kernels ws://${TARGET_FQDN}:${TARGET_PORT}${TARGET_PATH}ipython/api/kernels
ProxyPassReverse /ipython/api/kernels ws://${TARGET_FQDN}:${TARGET_PORT}${TARGET_PATH}ipython/api/kernels
#
# Proxy HTTP requests
ProxyPass /ipython http://${TARGET_FQDN}:${TARGET_PORT}${TARGET_PATH}ipython
ProxyPassReverse /ipython http://${TARGET_FQDN}:${TARGET_PORT}${TARGET_PATH}ipython
#
ProxyPass /ipython ws://${TARGET_FQDN}:${TARGET_PORT}${TARGET_PATH}ipython
ProxyPassReverse /ipython ws://${TARGET_FQDN}:${TARGET_PORT}${TARGET_PATH}ipython
#
ProxyPass /ipython/terminals ws://${TARGET_FQDN}:${TARGET_PORT}${TARGET_PATH}ipython/terminals
ProxyPassReverse /ipython/terminals ws://${TARGET_FQDN}:${TARGET_PORT}${TARGET_PATH}ipython/terminals
ProxyPass / http://${TARGET_FQDN}:${TARGET_PORT}${TARGET_PATH}ipython
ProxyPassReverse / http://${TARGET_FQDN}:${TARGET_PORT}${TARGET_PATH}ipython
<VirtualHost *:80>
LogLevel debug
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ErrorLog /var/log/httpd/error.log
CustomLog /var/log/httpd/access.log combined
OIDCRedirectURI http://${FQDN}/example/redirect_uri
OIDCCryptoPassphrase pass
OIDCClientID slipstream
OIDCClientSecret secret
OIDCProviderMetadataURL https://federation.cyclone-project.eu/auth/realms/master/.well-known/openid-configuration
OIDCRemoteUserClaim email
#client_secret_basic or client_secret_post are needed when moving to oidc2.0.0
OIDCProviderTokenEndpointAuth client_secret_basic
#/data is the directory /ifb/data
Alias /data /ifb/data
<Directory /ifb/data>
#we allows to list its content
Options +Indexes
DirectoryIndex index.html index.php /data/._h5ai/public/index.php
#Only for the owner
<RequireAll>
# Require all granted
AuthType openid-connect
Require valid-user
<RequireAny>
<RequireAny>
AuthGroupFile /etc/httpd/apache_groups
Require group cyclone
</RequireAny>
</RequireAny>
</RequireAll>
</Directory>
<Location />
LogLevel debug
<RequireAll>
# Require all granted
AuthType openid-connect
Require valid-user
<RequireAny>
<RequireAny>
AuthGroupFile /etc/httpd/apache_groups
Require group cyclone
</RequireAny>
</RequireAny>
</RequireAll>
</Location>
</VirtualHost>