ulyc 5510c3134f 🐛: fix nginx mime type %!s(int64=2) %!d(string=hai) anos
..
http.d a749d100d6 🔨: refactor some code %!s(int64=2) %!d(string=hai) anos
LICENSE a749d100d6 🔨: refactor some code %!s(int64=2) %!d(string=hai) anos
README.md a749d100d6 🔨: refactor some code %!s(int64=2) %!d(string=hai) anos
fastcgi.conf 1880dbf585 🔧: add nginx config %!s(int64=2) %!d(string=hai) anos
fastcgi_params 1880dbf585 🔧: add nginx config %!s(int64=2) %!d(string=hai) anos
graphql.conf a749d100d6 🔨: refactor some code %!s(int64=2) %!d(string=hai) anos
headers.conf a749d100d6 🔨: refactor some code %!s(int64=2) %!d(string=hai) anos
koi-utf 1880dbf585 🔧: add nginx config %!s(int64=2) %!d(string=hai) anos
koi-win 1880dbf585 🔧: add nginx config %!s(int64=2) %!d(string=hai) anos
mime.types 5510c3134f 🐛: fix nginx mime type %!s(int64=2) %!d(string=hai) anos
nginx.conf 5510c3134f 🐛: fix nginx mime type %!s(int64=2) %!d(string=hai) anos
port443.conf a749d100d6 🔨: refactor some code %!s(int64=2) %!d(string=hai) anos
port80.conf a749d100d6 🔨: refactor some code %!s(int64=2) %!d(string=hai) anos
proxy_params 1880dbf585 🔧: add nginx config %!s(int64=2) %!d(string=hai) anos
robots.txt a749d100d6 🔨: refactor some code %!s(int64=2) %!d(string=hai) anos
scgi_params 1880dbf585 🔧: add nginx config %!s(int64=2) %!d(string=hai) anos
sourcehut.conf a749d100d6 🔨: refactor some code %!s(int64=2) %!d(string=hai) anos
uwsgi_params 1880dbf585 🔧: add nginx config %!s(int64=2) %!d(string=hai) anos
web.conf a749d100d6 🔨: refactor some code %!s(int64=2) %!d(string=hai) anos
win-utf 1880dbf585 🔧: add nginx config %!s(int64=2) %!d(string=hai) anos

README.md

sr.ht-nginx

This is the nginx configuration files used by sr.ht in production. They are designed to run on an Alpine Linux system using the official sourcehut Alpine packages. You may use them on your own servers, but your mileage may vary. Install the -nginx package (e.g. git.sr.ht-nginx) to pull in these files, then edit /etc/nginx/domains.conf (and /etc/nginx/nginx.conf, if necessary) to suit your particular installation.

You should also write your own file, *-ssl.conf (e.g. /etc/nginx/builds-ssl.conf), which configures the SSL certificate, like so:

ssl_certificate /etc/ssl/uacme/builds.sr.ht/cert.pem;
ssl_certificate_key /etc/ssl/uacme/private/builds.sr.ht/key.pem;

This is annoying. You can thank the nginx devs.