Run terraria over haproxy

This commit is contained in:
Alex 2020-08-22 17:12:13 +02:00
parent a18d49d836
commit 224ebee5c2
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
3 changed files with 7 additions and 3 deletions

View File

@ -6,6 +6,8 @@
- { port: "{{ haproxy.ports.https }}", ipv: "v6", proto: "tcp" }
- { port: "2442", ipv: "v4", proto: "tcp" }
- { port: "2442", ipv: "v6", proto: "tcp" }
- { port: "7777", ipv: "v4", proto: "tcp" }
- { port: "7777", ipv: "v6", proto: "tcp" }
- { port: "64738", ipv: "v4", proto: "tcp" }
- { port: "64738", ipv: "v6", proto: "tcp" }
- { port: "25565", ipv: "v4", proto: "tcp" }
@ -35,6 +37,7 @@
- {expose: 2442, proxy: 2443, group: "dev"} # Gitea SSH
- {expose: 64738, proxy: "{{ global.social.murmur.port }}", group: "social"} # Mumble
- {expose: 25565, proxy: "{{ global.games.minecraft.port }}", group: "games"} # Minecraft
- {expose: 7777, proxy: "{{ global.games.terraria.port }}", group: "games"} # Terraria
redirect:
prefix:
- { pfx: "/web", acl: '{ hdr_beg(host) -i seed } { url / }' }

View File

@ -37,7 +37,8 @@
terraria:
world: "Main"
bind:
port: "7777"
ip: "{{ ansible_ens10.ipv4.address }}"
port: "{{ global.games.terraria.port }}"
paths:
data: "/mnt/terraria"
configs:
@ -96,8 +97,6 @@
firewall:
- { port: "{{ factorio.bind.port }}", ipv: "v4", proto: "udp" }
- { port: "{{ factorio.bind.port }}", ipv: "v6", proto: "udp" }
- { port: "{{ terraria.bind.port }}", ipv: "v4", proto: "tcp" }
- { port: "{{ terraria.bind.port }}", ipv: "v6", proto: "tcp" }
roles:
- vault
- mounts

View File

@ -40,3 +40,5 @@ global:
port: 25560
factorio:
port: 2333
terraria:
port: 7776