From a4cfb64155c7505f32fed0a579d41101e544fa7c Mon Sep 17 00:00:00 2001 From: Shav Kinderlehrer Date: Wed, 1 May 2024 12:32:28 -0400 Subject: Add CHELA_USES_HTTPS as an option --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 9ebf79d..861f206 100644 --- a/README.md +++ b/README.md @@ -71,6 +71,9 @@ If you would like Chela to listen for HTTP requests over a Unix socket, set this ##### `CHELA_ALPHABET` If this variable is set, Chela will use the characters in `CHELA_ALPHABET` to create IDs for URLs. The default alphabet is `abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ`. See [here](https://sqids.org/faq#unique) for more information on Sqids alphabets. +##### `CHELA_USES_HTTPS` +If this variable is set, Chela will refer to itself as `https://$CHELA_HOST` instead of the default `http://$CHELA_HOST`. + ### Manually #### Build ```bash @@ -94,7 +97,7 @@ If you would prefer to be the only one able to access these pages, then you can ```nginx server { - server_name example.com; + server_name a.com; location / { proxy_pass http://localhost:3000; @@ -108,7 +111,6 @@ server { location /tracking { proxy_pass http://localhost:3000$request_uri; - proxy_set_header X-Real-IP $remote_addr; auth_basic 'Restricted'; auth_basic_user_file /path/to/your/.htpasswd; -- cgit v1.2.3