minecraft/server/templates/map.nginx.conf.j2
author Luke Hoersten <luke@hoersten.org>
Fri, 21 Jul 2023 15:14:24 -0500
changeset 215 dd52907adff9
parent 156 ebd8a21a0e62
permissions -rw-r--r--
Split dendrite build out of install role.
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
}