You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Drew DeVault c735f50368 hub.sr.ht: add GQL API 1 month ago
pages.sr.ht pages.sr.ht: update configuration 1 year ago
LICENSE Initial commit 2 years ago
README.md README.md: fix typo 1 year ago
builds.sr.ht.conf Include common headers from separate file 9 months ago
chat.sr.ht.conf Include common headers from separate file 9 months ago
dispatch.sr.ht.conf Include common headers from separate file 9 months ago
git.sr.ht.conf Include common headers from separate file 9 months ago
graphql.conf web, graphql: set X-Forwarded-For properly 1 year ago
headers.conf Include common headers from separate file 9 months ago
hg.sr.ht.conf Include common headers from separate file 9 months ago
hub.sr.ht.conf hub.sr.ht: add GQL API 1 month ago
lists.sr.ht.conf Include common headers from separate file 9 months ago
man.sr.ht.conf man.sr.ht: correct API port 1 month ago
meta.sr.ht.conf Include common headers from separate file 9 months ago
nginx.conf all: move domains.conf => sourcehut.conf 1 year ago
paste.sr.ht.conf Include common headers from separate file 9 months ago
port80.conf all: refactor common config options into includes 1 year ago
port443.conf Include common headers from separate file 9 months ago
robots.txt robots.txt: add more git.sr.ht routes 7 months ago
sourcehut.conf all: remove variables in server_name 1 year ago
todo.sr.ht.conf Include common headers from separate file 9 months ago
web.conf web, graphql: set X-Forwarded-For properly 1 year ago

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.