diff options
author | Robin Jarry <robin@jarry.cc> | 2024-04-03 01:10:40 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2024-06-28 23:33:12 +0200 |
commit | b5e0c45ce3ecd8de0f7fe15a53293d535ea57096 (patch) | |
tree | 0ee98c1bc2bd9dfcb47821e6d384c1462a1e8b18 | |
parent | 24bfc54a6f9f17e7f5e11793ecafbe8101dde4e0 (diff) | |
download | aerc-b5e0c45ce3ecd8de0f7fe15a53293d535ea57096.tar.gz |
ircbot: use tabs for nginx config
Who indents nginx config files with 8 spaces?
Signed-off-by: Robin Jarry <robin@jarry.cc>
Tested-by: Bence Ferdinandy <bence@ferdinandy.com>
-rw-r--r-- | contrib/ircbot/nginx.conf | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/contrib/ircbot/nginx.conf b/contrib/ircbot/nginx.conf index 3a0b4a13..f394ddf8 100644 --- a/contrib/ircbot/nginx.conf +++ b/contrib/ircbot/nginx.conf @@ -1,35 +1,35 @@ limit_req_zone $binary_remote_addr zone=aercbot:1m rate=1r/s; server { - listen 443 ssl; - listen [::]:443 ssl; - server_name bot.diabeteman.com; + listen 443 ssl; + listen [::]:443 ssl; + server_name bot.diabeteman.com; - ssl_certificate /etc/dehydrated/certs/diabeteman.com/fullchain.pem; - ssl_certificate_key /etc/dehydrated/certs/diabeteman.com/privkey.pem; + ssl_certificate /etc/dehydrated/certs/diabeteman.com/fullchain.pem; + ssl_certificate_key /etc/dehydrated/certs/diabeteman.com/privkey.pem; - client_max_body_size 150K; - limit_req zone=aercbot burst=10 nodelay; + client_max_body_size 150K; + limit_req zone=aercbot burst=10 nodelay; - location / { - allow 46.23.81.128/25; - allow 2a03:6000:1813::/48; - deny all; - proxy_http_version 1.1; - proxy_set_header Host $http_host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_redirect off; - proxy_buffering off; - proxy_request_buffering off; - proxy_pass http://127.0.0.1:7777; - } + location / { + allow 46.23.81.128/25; + allow 2a03:6000:1813::/48; + deny all; + proxy_http_version 1.1; + proxy_set_header Host $http_host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_redirect off; + proxy_buffering off; + proxy_request_buffering off; + proxy_pass http://127.0.0.1:7777; + } } server { - listen 80; - listen [::]:80; - server_name bot.diabeteman.com; - return 301 https://$host$request_uri; + listen 80; + listen [::]:80; + server_name bot.diabeteman.com; + return 301 https://$host$request_uri; } |