python-discord / infra

Infrastructure for Python Discord
https://docs.pydis.wtf
MIT License
12 stars 4 forks source link

Per-user website directory #419

Closed jchristgit closed 3 weeks ago

jchristgit commented 1 month ago

On pydis.wtf, each user account on the server should be able to host a small website.

The premise is simple: when the request URL is https://pydis.wtf/~USERNAME/, serve files from /home/USERNAME/public/, with support for index.html and stripping HTML extensions.

jchristgit commented 1 month ago

@shtlrs maybe you wanna check this out?

Docs to look at in particular: https://freenginx.org/en/docs/http/ngx_http_core_module.html#location

shtlrs commented 1 month ago

Sure, i'll have a stab !