mirror of
https://git.sr.ht/~sircmpwn/sr.ht-nginx
synced 2026-07-20 05:43:02 +02:00
No description
Run the rate limiting module [1] in dry run mode for the archive endpoint (downloading of tarballs for specific revisions). This is mostly to collect intelligence for now to guide future decisions about rate limiting. [1] https://nginx.org/en/docs/http/ngx_http_limit_req_module.html |
||
|---|---|---|
| networks | ||
| pages.sr.ht | ||
| builds.sr.ht.conf | ||
| chat.sr.ht.conf | ||
| git.sr.ht.conf | ||
| graphql.conf | ||
| headers.conf | ||
| hg.sr.ht.conf | ||
| hub.sr.ht.conf | ||
| LICENSE | ||
| lists.sr.ht.conf | ||
| man.sr.ht.conf | ||
| meta.sr.ht.conf | ||
| nginx.conf | ||
| paste.sr.ht.conf | ||
| port80.conf | ||
| port443.conf | ||
| README.md | ||
| robots.txt | ||
| sourcehut.conf | ||
| todo.sr.ht.conf | ||
| web.conf | ||
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.