summaryrefslogtreecommitdiffstats
path: root/roles/live/templates/live.emacsconf.org.conf
blob: c73b20254165138cd913543463f132947581fedb (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# {{ ansible_managed }}

server {
	listen 80;
	listen [::]:80;
	server_name live.emacsconf.org;

	include snippets/well-known-acme-challenge.conf;

	root /var/www/live.emacsconf.org;
	add_header Cache-Control "no-store, no-cache, must-revalidate";
	add_header Pragma "no-cache";
	add_header Expires 0;
}

server {
	listen 443 ssl http2;
  listen [::]:443 ssl http2;
	server_name live.emacsconf.org;

	include /etc/nginx/tls/emacsconf.org.conf;
  location ~ ^/$ {
    return 307 https://live.emacsconf.org/{{ emacsconf_year }}/watch/index.html;
  }

	#auth_basic "Restricted";
	#auth_basic_user_file "znc-htpasswd";

	root /var/www/live.emacsconf.org;
	add_header Cache-Control "no-store, no-cache, must-revalidate";
	add_header Pragma "no-cache";
	add_header Expires 0;
}

server {
  listen 80;
  listen [::]:80;
  server_name live.emacsconf.com live.emacsconf.net;

  return 302 $scheme://live.emacsconf.org$request_uri;
}