diff options
| author | 2022-01-30 14:35:23 +0100 | |
|---|---|---|
| committer | 2022-01-30 14:35:23 +0100 | |
| commit | ec4357485e486db14f0729daf65cb95e63351f7d (patch) | |
| tree | c7fd15260825675130aacdd097d10396ba9aedb7 /docs/installation_guide | |
| parent | [documentation] Add section for systemd service and nginx to installation gui... (diff) | |
| download | gotosocial-ec4357485e486db14f0729daf65cb95e63351f7d.tar.xz | |
[documentation] add ipv6 config for nginx (#367)
Diffstat (limited to 'docs/installation_guide')
| -rw-r--r-- | docs/installation_guide/nginx.md | 5 | 
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/installation_guide/nginx.md b/docs/installation_guide/nginx.md index 9cf454cad..7d39971a3 100644 --- a/docs/installation_guide/nginx.md +++ b/docs/installation_guide/nginx.md @@ -59,6 +59,7 @@ The file you're about to create should look a bit like this:  ```nginx.conf  server {    listen 80; +  listen [::]:80;    server_name example.com;    location / {      proxy_pass http://localhost:8080; @@ -67,6 +68,8 @@ server {  }  ``` +Note: You can remove the line `listen [::]:80;` if your server is not ipv6 capable or you'd rather not use ipv6. +  Change `proxy_pass` to the ip and port that you're actually serving GoToSocial on and change `server_name` to your own domain name.  If your domain name is `gotosocial.example.com` then `server_name gotosocial.example.com;` would be the correct value.  If you're running GoToSocial on another machine with the local ip of 192.168.178.69 and on port 8080 then `proxy_pass http://192.168.178.69:8080;` would be the correct value. @@ -86,7 +89,7 @@ sudo nginx -t  If everything is fine you should get this as output: -``` +```text  nginx: the configuration file /etc/nginx/nginx.conf syntax is ok  nginx: configuration file /etc/nginx/nginx.conf test is successful  ```  | 
