-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support deployment behind nginx reverse proxy
- Loading branch information
Luca Bassi
committed
Oct 17, 2024
1 parent
2fa53c1
commit 192d32f
Showing
11 changed files
with
214 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
user storm storm; | ||
worker_processes auto; | ||
|
||
error_log /var/log/nginx/error.log debug; | ||
|
||
load_module /usr/lib64/nginx/modules/ngx_http_voms_module.so; | ||
|
||
events { | ||
worker_connections 1024; | ||
} | ||
|
||
http { | ||
include mime.types; | ||
default_type application/octet-stream; | ||
|
||
resolver 127.0.0.11 ipv6=off; | ||
|
||
log_format storm '$time_iso8601 [$request_id] $remote_addr - $remote_user "$request" <$upstream_response_time> ' | ||
'$ssl_protocol/$ssl_cipher ' | ||
'"$ssl_client_s_dn" ' | ||
'"$ssl_client_ee_s_dn" ' | ||
'$status $body_bytes_sent "$http_referer" ' | ||
'"$http_user_agent" "$http_x_forwarded_for"'; | ||
|
||
access_log /var/log/nginx/access.log storm; | ||
|
||
sendfile on; | ||
#tcp_nopush on; | ||
|
||
keepalive_timeout 65; | ||
|
||
include /etc/nginx/conf.d/*.conf; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
server { | ||
location /internal-get { | ||
internal; | ||
alias /; | ||
sendfile on; | ||
tcp_nopush on; | ||
keepalive_timeout 65; | ||
tcp_nodelay on; | ||
} | ||
location / { | ||
proxy_pass http://127.0.0.1:<%=scope['storm::webdav::http_port'] + 1%>; | ||
proxy_set_header X-VOMS-voms_user $voms_user; | ||
proxy_set_header X-VOMS-ssl_client_ee_s_dn $ssl_client_ee_s_dn; | ||
proxy_set_header X-VOMS-voms_user_ca $voms_user_ca; | ||
proxy_set_header X-VOMS-ssl_client_ee_i_dn $ssl_client_ee_i_dn; | ||
proxy_set_header X-VOMS-voms_fqans $voms_fqans; | ||
proxy_set_header X-VOMS-voms_server $voms_server; | ||
proxy_set_header X-VOMS-voms_server_ca $voms_server_ca; | ||
proxy_set_header X-VOMS-voms_vo $voms_vo; | ||
proxy_set_header X-VOMS-voms_server_uri $voms_server_uri; | ||
proxy_set_header X-VOMS-voms_not_before $voms_not_before; | ||
proxy_set_header X-VOMS-voms_not_after $voms_not_after; | ||
proxy_set_header X-VOMS-voms_generic_attributes $voms_generic_attributes; | ||
proxy_set_header X-VOMS-voms_serial $voms_serial; | ||
} | ||
listen [::]:<%=scope['storm::webdav::https_port']%> ssl http2; | ||
listen <%=scope['storm::webdav::https_port']%> ssl http2; | ||
ssl_certificate /etc/grid-security/hostcert.pem; | ||
ssl_certificate_key /etc/grid-security/hostkey.pem; | ||
ssl_client_certificate /etc/pki/ca-trust/extracted/pem/tls-ca-bundle-all.pem; | ||
ssl_verify_client optional; | ||
ssl_verify_depth 10; | ||
client_max_body_size 0; | ||
error_page 497 https://$host:<%=scope['storm::webdav::https_port']%>$request_uri; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters