Configurations and other related files for Starlight Network infrastructure, made openly available.
at master 52 lines 1.1 kB view raw
1(pl-fe) { 2 @web { 3 # do not make this a not {} block 4 # otherwise, federation breaks as all the conditions 5 # interpreted as `AND`, instead of `OR` 6 not header Accept *json* 7 not header Accept *activity* 8 not header Accept *ld* 9 not header Content-Type *json* 10 not header Content-Type *activity* 11 not header Content-Type *ld* 12 } 13 14 @backend { 15 path /.well-known* 16 path /api/* 17 path /oauth/* 18 path /nodeinfo/* 19 path /avatars/* 20 path /media/* 21 path /files/* 22 path /banners/* 23 path /assets/transparent.png 24 path /inbox* 25 } 26 27 @preview { 28 header User-Agent *Discord* 29 header User-Agent *discord* 30 header User-Agent *Whatsapp* 31 header User-Agent *whatsapp* 32 header User-Agent *WhatsApp* 33 header User-Agent *Signal* 34 header User-Agent *signal* 35 header User-Agent *ZulipURLPreview* 36 # revolt/stoat chat 37 header User-Agent *January* 38 header User-Agent *january* 39 } 40 41 handle @preview { 42 reverse_proxy * :3000 43 } 44 45 handle @web { 46 try_files {path} {path}/ /index.html 47 root * /web/pl-fe 48 file_server { 49 pass_thru 50 } 51 } 52}