From 3ac7e300daa22af1f30e69ea37a56ad472f02893 Mon Sep 17 00:00:00 2001 From: Alexandre CATTEAU Date: Fri, 28 Jul 2023 11:42:10 +0200 Subject: [PATCH] Add nginx conf to README --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index 2384a91..e3f0caf 100644 --- a/README.md +++ b/README.md @@ -7,5 +7,20 @@ This is just a Systemd service unit for [WebSSH](https://github.com/huashengdun/ #### Installation * `install.sh` script copies the Systemd template to its destination, with the correct path (set in `variables.conf`). +### Note +For this service to be correctly accessed through reverse proxy, you need the following parameters (Nginx example): +``` +location / { + proxy_pass http://localhost:8000/; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "Upgrade"; + proxy_set_header Host $http_host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Real-PORT $remote_port; + add_header Strict-Transport-Security "max-age=31536000; includeSubDomains"; +} +``` + ### TODO * RAS