ulyc 5510c3134f 🐛: fix nginx mime type | 2 years ago | |
---|---|---|
.. | ||
http.d | 2 years ago | |
LICENSE | 2 years ago | |
README.md | 2 years ago | |
fastcgi.conf | 2 years ago | |
fastcgi_params | 2 years ago | |
graphql.conf | 2 years ago | |
headers.conf | 2 years ago | |
koi-utf | 2 years ago | |
koi-win | 2 years ago | |
mime.types | 2 years ago | |
nginx.conf | 2 years ago | |
port443.conf | 2 years ago | |
port80.conf | 2 years ago | |
proxy_params | 2 years ago | |
robots.txt | 2 years ago | |
scgi_params | 2 years ago | |
sourcehut.conf | 2 years ago | |
uwsgi_params | 2 years ago | |
web.conf | 2 years ago | |
win-utf | 2 years ago |
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.