|
@@ -6,10 +6,6 @@ metadata:
|
|
|
rollme: {{ randAlphaNum 5 | quote }}
|
|
|
data:
|
|
|
config: |-
|
|
|
- load_module modules/ngx_http_uploadprogress_module.so;
|
|
|
- user www-data www-data;
|
|
|
- worker_processes 1;
|
|
|
-
|
|
|
events {
|
|
|
worker_connections 1024;
|
|
|
}
|
|
@@ -32,33 +28,24 @@ data:
|
|
|
application/rss+xml
|
|
|
image/svg+xml;
|
|
|
|
|
|
- # reserve 1MB under the name 'proxied' to track uploads
|
|
|
- upload_progress proxied 1m;
|
|
|
-
|
|
|
sendfile on;
|
|
|
- #tcp_nopush on;
|
|
|
client_max_body_size 1000m;
|
|
|
|
|
|
- #keepalive_timeout 0;
|
|
|
keepalive_timeout 65;
|
|
|
|
|
|
# Disable tokens for security (#23684)
|
|
|
server_tokens off;
|
|
|
|
|
|
gzip on;
|
|
|
- #upload_store /var/tmp/firmware;
|
|
|
client_body_temp_path /var/tmp/firmware;
|
|
|
|
|
|
- error_log syslog:server=unix:/var/run/log,nohostname;
|
|
|
- access_log syslog:server=unix:/var/run/log,nohostname;
|
|
|
-
|
|
|
server {
|
|
|
- server_name localhost;
|
|
|
+ server_name nginx;
|
|
|
listen 0.0.0.0:443 default_server ssl http2;
|
|
|
listen [::]:443 default_server ssl http2;
|
|
|
|
|
|
- ssl_certificate "/nginx.crt";
|
|
|
- ssl_certificate_key "/nginx.key";
|
|
|
+ ssl_certificate "/etc/nginx/server.crt";
|
|
|
+ ssl_certificate_key "/etc/nginx/server.key";
|
|
|
|
|
|
ssl_session_timeout 120m;
|
|
|
ssl_session_cache shared:ssl:16m;
|
|
@@ -68,10 +55,6 @@ data:
|
|
|
ssl_ciphers EECDH+ECDSA+AESGCM:EECDH+aRSA+AESGCM:EECDH+ECDSA:EDH+aRSA:EECDH:!RC4:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!SRP:!DSS:!SHA1:!SHA256:!SHA384;
|
|
|
add_header Strict-Transport-Security max-age=31536000;
|
|
|
|
|
|
- # Security Headers
|
|
|
- add_header X-Content-Type-Options nosniff;
|
|
|
- add_header X-XSS-Protection "1";
|
|
|
-
|
|
|
location = /robots.txt {
|
|
|
add_header Content-Type text/plain;
|
|
|
proxy_set_header Referer "http://nginx";
|
|
@@ -80,9 +63,8 @@ data:
|
|
|
|
|
|
# static files
|
|
|
location ^~ /loleaflet {
|
|
|
- set $upstream_collabora collabora;
|
|
|
- proxy_pass http://$upstream_collabora:9980;
|
|
|
- proxy_set_header Host $http_host;
|
|
|
+ proxy_pass http://collabora:9980;
|
|
|
+ proxy_set_header Host $host;
|
|
|
proxy_set_header Referer "http://nginx";
|
|
|
}
|
|
|
|
|
@@ -96,38 +78,34 @@ data:
|
|
|
|
|
|
# Capabilities
|
|
|
location ^~ /hosting/capabilities {
|
|
|
- set $upstream_collabora collabora;
|
|
|
- proxy_pass http://$upstream_collabora:9980;
|
|
|
- proxy_set_header Host $http_host;
|
|
|
+ proxy_pass http://collabora:9980;
|
|
|
+ proxy_set_header Host $host;
|
|
|
proxy_set_header Referer "http://nginx";
|
|
|
}
|
|
|
|
|
|
# main websocket
|
|
|
location ~ ^/lool/(.*)/ws$ {
|
|
|
- set $upstream_collabora collabora;
|
|
|
- proxy_pass http://$upstream_collabora:9980;
|
|
|
+ proxy_pass http://collabora:9980;
|
|
|
+ proxy_set_header Host $host;
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
proxy_set_header Connection "Upgrade";
|
|
|
- proxy_set_header Host $http_host;
|
|
|
proxy_set_header Referer "http://nginx";
|
|
|
proxy_read_timeout 36000s;
|
|
|
}
|
|
|
|
|
|
# download, presentation and image upload
|
|
|
location ~ ^/lool {
|
|
|
- set $upstream_collabora collabora;
|
|
|
- proxy_pass http://$upstream_collabora:9980;
|
|
|
- proxy_set_header Host $http_host;
|
|
|
+ proxy_pass http://collabora:9980;
|
|
|
+ proxy_set_header Host $host;
|
|
|
proxy_set_header Referer "http://nginx";
|
|
|
}
|
|
|
|
|
|
# Admin Console websocket
|
|
|
location ^~ /lool/adminws {
|
|
|
- set $upstream_collabora collabora;
|
|
|
- proxy_pass http://$upstream_collabora:9980;
|
|
|
+ proxy_pass http://collabora:9980;
|
|
|
+ proxy_set_header Host $host;
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
proxy_set_header Connection "Upgrade";
|
|
|
- proxy_set_header Host $http_host;
|
|
|
proxy_set_header Referer "http://nginx";
|
|
|
proxy_read_timeout 36000s;
|
|
|
}
|
|
@@ -136,8 +114,8 @@ data:
|
|
|
server {
|
|
|
listen 0.0.0.0:80;
|
|
|
listen [::]:80;
|
|
|
- server_name localhost;
|
|
|
- return 307 https://$host:443$request_uri;
|
|
|
+ server_name nginx;
|
|
|
+ return 307 https://$host:{{ .Values.nodePort }}}$request_uri;
|
|
|
}
|
|
|
|
|
|
}
|