Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 550 Bytes

example-config.md

File metadata and controls

27 lines (21 loc) · 550 Bytes

Example configuration

server {
	include snippets/listen_80.conf;
	server_name domain.tld;

	include snippets/https_redirect.conf;
}

server {
	include snippets/listen_443.conf;
	server_name domain.tld;

	ssl_certificate /etc/letsencrypt/live/domain.tld/fullchain.pem;
	ssl_trusted_certificate /etc/letsencrypt/live/domain.tld/chain.pem;
	ssl_certificate_key /etc/letsencrypt/live/domain.tld/privkey.pem;
	include snippets/full_hsts.conf;

	root /var/www/html/domain.tld;
	index index.html;

	location / {
		try_files $uri $uri/ =404;
	}
}