Index

joshstock.in / 971e239

Source for serving and static templating/compiling of https://joshstock.in.

Latest Commit

{#}TimeHashSubjectAuthor#(+)(-)GPG?
16321 Jan 2023 10:1029e63ddPoint 404 error pages to correct file locationJosh Stockin122G

Blob @ joshstock.in / nginx / prod / servers / shell.conf

text/plain711 bytesdownload raw
1server {
2 listen 443 ssl http2;
3 listen [::]:443 ssl http2;
4 server_name shell.joshstock.in;
5 error_page 404 /error/404.html; location = /error/404.html {
6 root /var/www/josh/static;
7 }
8 location ^~ {
9 proxy_pass http://localhost:8889;
10
11 proxy_http_version 1.1;
12 proxy_set_header Upgrade $http_upgrade;
13 proxy_set_header Connection "upgrade";
14 proxy_read_timeout 43200000;
15
16 proxy_set_header X-Real-IP $remote_addr;
17 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
18 proxy_set_header Host $http_host;
19 proxy_set_header X-NginX-Proxy true;
20 }
21 location = /favicon.ico {
22 root /var/www/josh;
23 }
24}
25