Index

joshstock.in / 340fc10

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

Latest Commit

{#}TimeHashSubjectAuthor#(+)(-)GPG?
15609 Aug 2022 20:54340fc10Use Commento instead of Disqus for commentsJosh Stockin1240G

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

text/plain711 bytesdownload raw
1server {
2 listen 443 ssl http2;
3 listen [::]:443 ssl http2;
4 server_name comments.joshstock.in;
5 error_page 404 /error-404.html; location = /error-404.html {
6 root /var/www/comments;
7 }
8 location ^~ {
9 proxy_pass http://localhost:8888;
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