Compare commits

...

6 Commits

Author SHA1 Message Date
Tommy 06f63c3c9b
Remove redundant header line
Signed-off-by: Tommy <contact@tommytran.io>
2023-04-12 08:02:15 -04:00
Tommy c58483e28a
Increase timeout
Signed-off-by: Tommy <contact@tommytran.io>
2023-04-12 07:59:05 -04:00
Tommy 0ed328280e
Change X-Frame-Options to SAMEORIGIN
Signed-off-by: Tommy <contact@tommytran.io>
2023-04-12 07:58:38 -04:00
Tommy 61f3a4c088
Move HSTS to reverse proxy configs and remove redundant X-Frame-Options 2023-04-12 07:39:40 -04:00
Tommy 3d036d96e8
Add X-Frame-Options
Signed-off-by: Tommy <contact@tommytran.io>
2023-04-12 07:35:13 -04:00
Tommy ae61091364
Change back to swag's ciphersuite
Signed-off-by: Tommy <contact@tommytran.io>
2023-04-12 07:33:52 -04:00
5 changed files with 12 additions and 8 deletions

2
.env
View File

@ -1 +1 @@
COMPOSE_HTTP_TIMEOUT=600
COMPOSE_HTTP_TIMEOUT=1000

View File

@ -11,7 +11,9 @@ server {
server_name element.*;
include /config/nginx/ssl.conf;
add_header X-Frame-Options "SAMEORIGIN" always;
# HSTS (ngx_http_headers_module is required) (63072000 seconds)
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always;
client_max_body_size 0;

View File

@ -11,7 +11,9 @@ server {
server_name invite.*;
include /config/nginx/ssl.conf;
add_header X-Frame-Options "SAMEORIGIN" always;
# HSTS (ngx_http_headers_module is required) (63072000 seconds)
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always;
client_max_body_size 0;

View File

@ -12,6 +12,9 @@ server {
include /config/nginx/ssl.conf;
# HSTS (ngx_http_headers_module is required) (63072000 seconds)
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always;
client_max_body_size 0;
# enable for ldap auth, fill in ldap details in ldap.conf

View File

@ -15,13 +15,10 @@ ssl_dhparam /config/nginx/dhparams.pem;
# intermediate configuration
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256;
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;
ssl_prefer_server_ciphers on;
ssl_conf_command Options PrioritizeChaCha;
# HSTS (ngx_http_headers_module is required) (63072000 seconds)
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always;
# OCSP stapling
ssl_stapling on;
ssl_stapling_verify on;
@ -35,7 +32,7 @@ add_header Content-Security-Policy "default-src 'none'; connect-src * https:; fo
add_header Permissions-Policy "accelerometer=(), ambient-light-sensor=(), autoplay=(), battery=(), camera=(), clipboard-read=(), display-capture=(), document-domain=(), encrypted-media=(), fullscreen=(), geolocation=(), gyroscope=(), hid=(), idle-detection=(), interest-cohort=(), magnetometer=(), midi=(), payment=(), picture-in-picture=(), publickey-credentials-get=(), screen-wake-lock=(), serial=(), usb=(), sync-xhr=(), xr-spatial-tracking=()";
add_header Referrer-Policy "same-origin" always;
add_header X-Content-Type-Options "nosniff" always;
#add_header X-UA-Compatible "IE=Edge" always;
add_header X-Frame-Options "SAMEORIGIN" always;
add_header X-XSS-Protection "0" always;
add_header Cross-Origin-Resource-Policy cross-origin;
add_header Cross-Origin-Opener-Policy same-origin;