~ecs/ecs.d2evs.net

51aa6547e93995d4dc2d943c97888bb9ba3e78a4 — Eyal Sawady 6 months ago be417ac
Update README.md, add nginx config
2 files changed, 37 insertions(+), 1 deletions(-)

M README.md
A nginx.conf
M README.md => README.md +5 -1
@@ 6,7 6,11 @@ The code behind <https://ecs.d2evs.net>.

I use [wersh](https://git.sr.ht/~ecs/wersh) and
[discount](http://www.pell.portland.or.us/~orc/Code/discount/), you may
have luck with other markdown preprocessors.
have luck with [the original wersh](https://git.sr.ht/~sircmpwn/wersh)
and different markdown preprocessor.

nginx.conf is the nginx configuration used in prod, you will probably
need to modify it.

## Licensing


A nginx.conf => nginx.conf +32 -0
@@ 0,0 1,32 @@
server {
	listen 80;
	listen [::]:80;
	server_name ecs.d2evs.net;

	location / {
		return 302 https://$server_name$request_uri;
	}

	location ^~ /.well-known {
		root /var/www;
	}
}

server {
	listen 443 ssl http2;
	listen [::]:443 ssl http2;
	server_name ecs.d2evs.net;
	ssl_certificate /etc/ssl/uacme/d2evs.net/cert.pem;
	ssl_certificate_key /etc/ssl/uacme/private/d2evs.net/key.pem;

	gzip on;

	location / {
		root /var/www/ecs.d2evs.net;
		try_files $uri $uri/index.md $uri/index.html 404.html;
	}

	location = /404.html {
		internal;
	}
}