summaryrefslogtreecommitdiffstats
path: root/roles/media/templates/nginx-include
blob: 3bfb58e319acd327a98cd2c042aa6d864c829804 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
        location /{{ emacsconf_year }}/backstage {
                auth_basic "Restricted";
                auth_basic_user_file /etc/nginx/sites-available/{{ host_name }}-{{ emacsconf_year }}-htpasswd;
                autoindex on;
        }
        {% if media_protect_root %}
        location /{{ emacsconf_year }} {
                auth_basic "Restricted";
                auth_basic_user_file /etc/nginx/sites-available/{{ host_name }}-{{ emacsconf_year }}-htpasswd;
                autoindex on;
        }
        {% endif %}
        location /{{ emacsconf_year }}/emacsconf.ics {
           auth_basic off;
        }
        {% for track in emacsconf_tracks %}
        location /{{ emacsconf_year }}/emacsconf-{{ track.id }}.ics {
           auth_basic off;
        }
        {% endfor %}