Index

joshstock.in / bf754f6

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

Latest Commit

{#}TimeHashSubjectAuthor#(+)(-)GPG?
15123 Jul 2022 20:39bf754f6Add focalboard confJosh Stockin1500G

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

text/plain1708 bytesdownload raw
1server {
2 listen 443 ssl http2;
3 listen [::]:443 ssl http2;
4 server_name focal.joshstock.in;
5 rewrite ^/(.*)/$ /$1 permanent; # truncate forward slash
6 error_page 404 /error-404.html; location = /error-404.html {
7 root /var/www/josh;
8 }
9 location = /favicon.ico {
10 root /var/www/josh;
11 }
12 location ~ /ws/* {
13 proxy_set_header Upgrade $http_upgrade;
14 proxy_set_header Connection "upgrade";
15 client_max_body_size 50M;
16 proxy_set_header Host $http_host;
17 proxy_set_header X-Real-IP $remote_addr;
18 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
19 proxy_set_header X-Forwarded-Proto $scheme;
20 proxy_set_header X-Frame-Options SAMEORIGIN;
21 proxy_buffers 256 16k;
22 proxy_buffer_size 16k;
23 client_body_timeout 60;
24 send_timeout 300;
25 lingering_timeout 5;
26 proxy_connect_timeout 1d;
27 proxy_send_timeout 1d;
28 proxy_read_timeout 1d;
29 proxy_pass http://localhost:8000;
30 }
31
32 location / {
33 client_max_body_size 50M;
34 proxy_set_header Connection "";
35 proxy_set_header Host $http_host;
36 proxy_set_header X-Real-IP $remote_addr;
37 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
38 proxy_set_header X-Forwarded-Proto $scheme;
39 proxy_set_header X-Frame-Options SAMEORIGIN;
40 proxy_buffers 256 16k;
41 proxy_buffer_size 16k;
42 proxy_read_timeout 600s;
43 proxy_cache_revalidate on;
44 proxy_cache_min_uses 2;
45 proxy_cache_use_stale timeout;
46 proxy_cache_lock on;
47 proxy_http_version 1.1;
48 proxy_pass http://localhost:8000;
49 }
50}
51