ansible/roles/minecraft/templates/nginx.conf.j2

16 lines
304 B
Django/Jinja

# {{ ansible_managed }}
server {
listen 80;
listen [::]:80;
server_name {{ ansible_fqdn }};
root {{ minecraft_opt_path }}/backup;
location / {
autoindex on;
auth_basic "Access Restricted";
auth_basic_user_file {{ minecraft_opt_path }}/etc/htpasswd;
}
}