just nginx indentation, noticed while merging something

jschan
Thomas Lynch 3 years ago
parent 3b5eb29b02
commit a330ed7773
Signed by: fatchan
GPG Key ID: 112884AA57DF40B1
  1. 20
      configs/nginx/snippets/error_pages.conf
  2. 16
      configs/nginx/snippets/jschan_common_routes.conf

@ -4,22 +4,22 @@ error_page 502 /502.html;
error_page 503 /503.html; error_page 503 /503.html;
error_page 504 /504.html; error_page 504 /504.html;
location = /404.html { location = /404.html {
root /path/to/jschan/static/html; root /path/to/jschan/static/html;
internal; internal;
} }
location = /500.html { location = /500.html {
root /path/to/jschan/static/html; root /path/to/jschan/static/html;
internal; internal;
} }
location = /502.html { location = /502.html {
root /path/to/jschan/static/html; root /path/to/jschan/static/html;
internal; internal;
} }
location = /503.html { location = /503.html {
root /path/to/jschan/static/html; root /path/to/jschan/static/html;
internal; internal;
} }
location = /504.html { location = /504.html {
root /path/to/jschan/static/html; root /path/to/jschan/static/html;
internal; internal;
} }

@ -30,22 +30,22 @@ location /captcha {
# authed, no cache pages # authed, no cache pages
location ~* ^/((\w+/manage/.*|globalmanage/(reports|bans|recent|boards|globallogs|news|accounts|settings))|account|create|csrf)\.(html|json)$ { location ~* ^/((\w+/manage/.*|globalmanage/(reports|bans|recent|boards|globallogs|news|accounts|settings))|account|create|csrf)\.(html|json)$ {
expires 0; expires 0;
try_files /dev/null @backend-private; try_files /dev/null @backend-private;
} }
# public html # public html
location ~* \.html$ { location ~* \.html$ {
expires 0; expires 0;
root /path/to/jschan/static/html; root /path/to/jschan/static/html;
try_files $uri @backend; try_files $uri @backend;
} }
# public json # public json
location ~* \.json$ { location ~* \.json$ {
expires 0; expires 0;
root /path/to/jschan/static/json; root /path/to/jschan/static/json;
try_files $uri @backend; try_files $uri @backend;
} }
# CSS # CSS

Loading…
Cancel
Save