You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 17, 2023. It is now read-only.
It uses it's own authentication, it's suggested to use local (IP) based auth to restrict external access
sub-directory
Yes
sub-domain
Untested
base URL
Yes
It has a built in base of guacamole, if using an alternative, you must modify additional parameters in the block. This is referenced in the official documentation.
## Main server block to redirect traffic from HTTP to HTTPSserver {
listen80;
server_name <fqdn>;
return301 https://$host$request_uri;
}
## Main server block for HTTPSserver {
listen443 ssl;
server_name <fqdn>;
root /config/www;
index index.html index.htm index.php;
include /config/nginx/ssl.conf ## Using a single include for all SSL related items
location /guacamole/ {
proxy_pass http://<hostname>:6789/guacamole/; ## Default <port> is 6789, adjust if necessaryproxy_buffering off;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
include /config/nginx/proxy.conf; ## Using a single include file for commonly used settings
}
proxy.conf
client_max_body_size10m;
client_body_buffer_size128k;
#Timeout if the real server is deadproxy_next_upstream error timeout invalid_header http_500 http_502 http_503;
# Advanced Proxy Configsend_timeout5m;
proxy_read_timeout240;
proxy_send_timeout240;
proxy_connect_timeout240;
# Basic Proxy Configproxy_set_header Host $host:$server_port;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_redirect http:// $scheme://;
proxy_http_version1.1;
proxy_set_header Connection "";
proxy_cache_bypass$cookie_session;
proxy_no_cache$cookie_session;
proxy_buffers324k;
ssl.conf
## Certificates from LE container placementssl_certificate /config/keys/letsencrypt/fullchain.pem;
ssl_certificate_key /config/keys/letsencrypt/privkey.pem;
## Strong Security recommended settings per cipherli.stssl_dhparam /config/nginx/dhparams.pem;
ssl_ciphers ECDHE-RSA-AES256-GCM-SHA512:DHE-RSA-AES256-GCM-SHA512:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384;
ssl_ecdh_curve secp384r1; # Requires nginx >= 1.1.0ssl_session_timeout10m;
## Settings to add strong security profile (A+ on securityheaders.io/ssllabs.com)add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload";
add_header X-Content-Type-Options nosniff;
add_header X-XSS-Protection "1; mode=block";
add_header X-Robots-Tag none;
add_header Content-Security-Policy "frame-ancestors https://*.<fqdn> https://<fqdn>"; ## Use *.domain.com, not *.sub.domain.comadd_header X-Frame-Options "ALLOW-FROM https://*.<fqdn>" always; ## Use *.domain.com, not *.sub.domain.comadd_header Referrer-Policy "strict-origin";
proxy_cookie_path / "/; HTTPOnly; Secure";
more_set_headers"Server: Classified";
more_clear_headers'X-Powered-By';