minecraft/server/templates/map.nginx.conf.j2
author Luke Hoersten <luke@hoersten.org>
Sat, 03 Jul 2021 13:23:46 -0500
changeset 156 ebd8a21a0e62
parent 125 minecraft/templates/map.nginx.conf.j2@5a298f7b44f5
permissions -rw-r--r--
Added minecraft backup.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
125
5a298f7b44f5 Added dynmap to minecraft.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     1
server {
5a298f7b44f5 Added dynmap to minecraft.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     2
    listen {{nginx_port}};
5a298f7b44f5 Added dynmap to minecraft.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     3
    server_name {{nginx_server_name}};
5a298f7b44f5 Added dynmap to minecraft.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     4
    root {{nginx_root_dir}};
5a298f7b44f5 Added dynmap to minecraft.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     5
5a298f7b44f5 Added dynmap to minecraft.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     6
    index index.html;
5a298f7b44f5 Added dynmap to minecraft.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     7
5a298f7b44f5 Added dynmap to minecraft.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     8
    location / {
5a298f7b44f5 Added dynmap to minecraft.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     9
        try_files $uri $uri/ =404;
5a298f7b44f5 Added dynmap to minecraft.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    10
    }
5a298f7b44f5 Added dynmap to minecraft.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    11
}