summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorlolcat <lolcat@no-reply@lolcat.ca>2024-02-07 09:16:50 -0600
committerlolcat <lolcat@no-reply@lolcat.ca>2024-02-07 09:16:50 -0600
commit5648fcf2634968f113190e5af7148fc1977fc329 (patch)
tree96244ed08be6b9ac2e6df7dd6f741421df3ab647 /README.md
parent799916cfb4a8f3135e81c07a1865fa131507ec56 (diff)
parent64a19d7d2ebd91cf92f4f645efb96592a5b65aa6 (diff)
Merge pull request 'Don't let your long onion address break your Nginx!' (#32) from Sectorfive/4get:master into master
Reviewed-on: https://git.lolcat.ca/lolcat/4get/pulls/32 Long live the DPRK
Diffstat (limited to 'README.md')
-rw-r--r--README.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/README.md b/README.md
index 8121d9e..512a95e 100644
--- a/README.md
+++ b/README.md
@@ -305,6 +305,12 @@ I don't know to configure this shit on Apache so here is the NGINX one.
## Tor setup on NGINX
+Important Note: Tor onion addresses are significantly longer than traditional domain names. Before proceeding with Nginx configuration, ensure you increase the `server_names_hash_bucket_size` value in your `nginx.conf` file. This setting in your Nginx configuration controls the internal data structure used to manage multiple server names (hostnames) associated with your web server. Each hostname requires a certain amount of memory within this structure. If the size is insufficient, Nginx will encounter errors.
+
+1. Open your `nginx.conf` file (that is under `/etc/nginx/nginx.conf`).
+2. Find the line containing `# server_names_hash_bucket_size 64;`.
+3. Uncomment the line and adjust the value. Start with 64, but if you encounter issues, incrementally increase it (e.g., 128, 256) until it accommodates your configuration.
+
Open your current 4get NGINX config (that is under `/etc/nginx/sites-available/`) and append this to the end of the file:
```