my php website :D https://j0.lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 38 lines 1.1 kB view raw
1http://localhost:8099, http://127.0.0.1:8099 { 2 respond /health-check 200 3 4 #respond "j0.lol is down for rewrites. If you need me, shoot me a msg at me@j0.lol." 5 root * . 6 7 encode zstd gzip 8 9 # brew services start php 10 php_fastcgi 127.0.0.1:9000 11 12 handle_path /static/* { 13 @cachedFiles { 14 not file 15 path_regexp cached ~*(.+)\.(?:[0-9a-zA-Z]+)\.(js|css|jpg|svg|png) 16 } 17 header @cachedFiles Cache-Control "no-store" # Dev Only 18 rewrite @cachedFiles {http.regexp.cached.1}.{http.regexp.cached.2} 19 20 root * ./static 21 file_server browse 22 } 23 # reverse_proxy https://plausible.j0.lol /js/script.js 24 25 handle_path /pls/* { 26 reverse_proxy https://plausible.j0.lol 27 } 28 29 @plausible path /js/script.js /api/event 30 handle @plausible { 31 # Change this if you use a different variant of the script 32 # e.g. rewrite /js/script.js /js/script.outbound-links.js 33 rewrite /js/script.js /js/script.js 34 reverse_proxy https://plausible.j0.lol { 35 header_up Host {http.reverse_proxy.upstream.hostport} 36 } 37 } 38}