feat: make secure flag of cookie configurable (#26)

This commit is contained in:
Akira Yamazaki 2024-08-24 22:18:38 +08:00 committed by GitHub
parent 9801ef453d
commit c4c1fd8aab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 10 additions and 2 deletions

View file

@ -14,6 +14,7 @@ You can configure Headplane using environment variables.
- **`CONFIG_FILE`**: The path to the Headscale `config.yaml` (default: `/etc/headscale/config.yaml`).
- **`ACL_FILE`**: The path to the ACL file (default: `/etc/headscale/acl_policy.json`, not needed if you have `acl_policy_path` in your config).
- **`HEADSCALE_CONFIG_UNSTRICT`**: This will disable the strict configuration loader (default: `false`).
- **`COOKIE_SECURE`**: This option enables the `Secure` flag for cookies, ensuring they are sent only over HTTPS, which helps prevent interception and enhances data security. It should be disabled when using HTTP instead of HTTPS (default: `true`).
#### Docker Integration
The Docker integration allows Headplane to manage the Headscale docker container.