summary refs log tree commit diff
path: root/www.starfall.systems
blob: e99414b1026f4aa7198cc9403ef95054a97f08c0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# vim: ft=nginx
server {
	listen 80;
	listen [::]:80;
	server_name starfall.systems www.starfall.systems;
	location ^~ /.well-known/acme-challenge {
		alias /var/lib/dehydrated/acme_challenges/;
	}
	return 301 https://$host$request_uri;
}

server {
	server_name www.starfall.systems;
	include /etc/nginx/snippets/ssl.conf;
	return 302 https://starfall.systems$request_uri;
}

server {
	listen 443 ssl;
	listen [::]:443 ssl;
	server_name starfall.systems;
	include /etc/nginx/snippets/ssl.conf;

	root /srv/starfall.systems;
	try_files $uri $uri/index.html $uri.html =404;
}