Traefik as Reverse Proxy

How can I configure Traefik for AMP? I want to forward a Service (Dynmap with one subdomain) and 2 Applications (2 Minecraft Server/Instances with one subdomain each)

server1.myserveramp.com over Treaefik to myserveramp.com:25560
server2.myserveramp.com over Treaefik to myserveramp.com:25561
dynmap.myserveramp.com over Treaefik to myserveramp.com:8123 (maybe i will change that later)

I cannot access the Management Instance even after reboot. The DNS Record was made over 72 ago…

I need help

Ubuntu 22.04.01 LTS
AMP Professional 2.3.4.4

Looks like your domain name for Traefik isn’t a wildcard domain. It would typically be something like *.mydomain.com as per the settings description.

Ah… I will change that… I did generate a Wildcard Certificate with Let’s Encrypt…

Is there a Guide for setting up Traefik for AMP? What do I have to do during the installation?

I’m afraid there’s no guide, it was shoehorned in as a beta feature because a couple of people requested it but I’ve personally never used Traefik and don’t know anything about it other than you could do some of the configuration automatically by adding the appropriate flags to the Docker containers.

Is there any solution or guide now how to use amp with traefik?

1 Like

+1 for this!

Any update? I suspect AMP ADS using port 80, 8080 and 443 is the main issue for Traefik

any solution for this? I can get passthrough working to the amp dash but I cant block access of the port and IP combo

You’d just treat Traefik like you would any other reverse proxy with AMP.
As long as you configure it correctly, it’ll work fine.
https://discourse.cubecoders.com/t/setting-up-secure-http-https-with-amp/2305
(Just adapt the Nginx examples to Traefik)
If you set up AMP’s automated HTTPS setup, you’ll obvi need to remove Nginx from the system before Traefik will work.
To rebind the ADS to 127.0.0.1 you’d run:
sudo su -l amp
ampinstmgr rebind ADS01 127.0.0.1 8080
Assuming it’s a standalone setup, you’d ignore the repairauth warning.

Do note, that you cannot reverse proxy TCP/UDP game traffic unless the game server supports something like HA Proxy or TLS.

Ok so when I do that the issue I am having is that I cant see it in traefik and it wont load on either ip or on domain

Please create your own post