diff options
| author | Diego E <diegoe@gmail.com> | 2025-04-24 19:26:59 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-25 00:26:59 +0000 |
| commit | e6a1c5309f0683376e87fe333adc92dd713cd51a (patch) | |
| tree | 9d0616ba9a2f7cbc4b8e57714ed9944d40558d5b /docs | |
| parent | 5c29a66fcc7a1ae375c00e567ea9dcfe15a36f1e (diff) | |
| download | anubis-e6a1c5309f0683376e87fe333adc92dd713cd51a.tar.xz anubis-e6a1c5309f0683376e87fe333adc92dd713cd51a.zip | |
docs: Fix nginx.mdx indentation (#359)
It would seem the file was originally edited for 2-space indentation but accidentally used tabs instead of actual spaces.
Signed-off-by: Diego E <diegoe@gnome.org>
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/docs/admin/environments/nginx.mdx | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/docs/docs/admin/environments/nginx.mdx b/docs/docs/admin/environments/nginx.mdx index 3875c58..86970c3 100644 --- a/docs/docs/admin/environments/nginx.mdx +++ b/docs/docs/admin/environments/nginx.mdx @@ -41,45 +41,45 @@ Assuming that we are protecting `anubistest.techaro.lol`, here's what the server # HTTP - Redirect all HTTP traffic to HTTPS server { - listen 80; - listen [::]:80; + listen 80; + listen [::]:80; - server_name anubistest.techaro.lol; + server_name anubistest.techaro.lol; - location / { - return 301 https://$host$request_uri; - } + location / { + return 301 https://$host$request_uri; + } } # TLS termination server, this will listen over TLS (https) and then # proxy all traffic to the target via Anubis. server { - # Listen on TCP port 443 with TLS (https) and HTTP/2 - listen 443 ssl http2; - listen [::]:443 ssl http2; + # Listen on TCP port 443 with TLS (https) and HTTP/2 + listen 443 ssl http2; + listen [::]:443 ssl http2; - location / { + location / { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_pass http://anubis; } - server_name anubistest.techaro.lol; + server_name anubistest.techaro.lol; - ssl_certificate /path/to/your/certs/anubistest.techaro.lol.crt; - ssl_certificate_key /path/to/your/certs/anubistest.techaro.lol.key; + ssl_certificate /path/to/your/certs/anubistest.techaro.lol.crt; + ssl_certificate_key /path/to/your/certs/anubistest.techaro.lol.key; } # Backend server, this is where your webapp should actually live. server { - listen unix:/run/nginx/nginx.sock; + listen unix:/run/nginx/nginx.sock; - server_name anubistest.techaro.lol; - root "/srv/http/anubistest.techaro.lol"; - index index.html; + server_name anubistest.techaro.lol; + root "/srv/http/anubistest.techaro.lol"; + index index.html; - # Your normal configuration can go here - # location .php { fastcgi...} etc. + # Your normal configuration can go here + # location .php { fastcgi...} etc. } ``` @@ -107,28 +107,28 @@ Then in a server block: # /etc/nginx/conf.d/server-mimi-techaro-lol.conf server { - # Listen on 443 with SSL - listen 443 ssl http2; - listen [::]:443 ssl http2; + # Listen on 443 with SSL + listen 443 ssl http2; + listen [::]:443 ssl http2; - # Slipstream via Anubis - include "conf-anubis.inc"; + # Slipstream via Anubis + include "conf-anubis.inc"; - server_name mimi.techaro.lol; + server_name mimi.techaro.lol; - ssl_certificate /path/to/your/certs/mimi.techaro.lol.crt; - ssl_certificate_key /path/to/your/certs/mimi.techaro.lol.key; + ssl_certificate /path/to/your/certs/mimi.techaro.lol.crt; + ssl_certificate_key /path/to/your/certs/mimi.techaro.lol.key; } server { - listen unix:/run/nginx/nginx.sock; + listen unix:/run/nginx/nginx.sock; - server_name mimi.techaro.lol; - root "/srv/http/mimi.techaro.lol"; - index index.html; + server_name mimi.techaro.lol; + root "/srv/http/mimi.techaro.lol"; + index index.html; - # Your normal configuration can go here - # location .php { fastcgi...} etc. + # Your normal configuration can go here + # location .php { fastcgi...} etc. } ``` |
