Our Personal Data Server from scratch!
tranquil.farm
oauth
atproto
pds
rust
postgresql
objectstorage
fun
1server {
2 listen 80;
3 listen [::]:80;
4 server_name _;
5
6 root /usr/share/nginx/html;
7 index index.html;
8
9 gzip on;
10 gzip_vary on;
11 gzip_types text/plain text/css application/json application/javascript text/xml application/xml;
12
13 location = /oauth-client-metadata.json {
14 default_type application/json;
15 sub_filter_once off;
16 sub_filter_types application/json;
17 sub_filter '__FRONTEND_HOSTNAME__' $host;
18 try_files /oauth-client-metadata.json =404;
19 }
20
21 location /assets/ {
22 expires 1y;
23 add_header Cache-Control "public, immutable";
24 try_files $uri =404;
25 }
26
27 location = / {
28 try_files /homepage.html /index.html;
29 }
30
31 location /app/ {
32 try_files $uri $uri/ /index.html;
33 }
34
35 location / {
36 try_files $uri $uri/ /index.html;
37 }
38}