Files
Compose-Template/traefik/dynamic/remote-host.yml

47 lines
1.3 KiB
YAML

# Remote host yml file example
# This file can not use env variables.
# It contains placeholders indicated by ALL-CAPS that must be replaced by the values of the matching variables
# Must be http here, not https
http:
# Define all routes in this section
routers:
# Name of the Route
SERVICE_NAME-SERVER_NAME:
# Url to proxy
rule: "Host(`SERVICE_NAME.SERVER_NAME.SUBDOMIAN.duckdns.org`)"
# Name of the service (must match the service name in the services section)
# example: 'service: arcane-server1-service
service: SERVICE_NAME-SERVER_NAME-service
# Use https
entrypoints:
- websecure
# Use letsencrypt certificate
tls:
certResolver: letsencrypt
# middlewares section should be omittted if empty
middlewares:
# Use Authelia for login
- authelia@docker
# Define all services in this section
services:
# Name of the service (must match service name defined above)
# example: 'service: arcane-server1-service
SERVICE_NAME-SERVER_NAME-service:
# Define the load balancer using the ip and external port of the server
loadBalancer:
servers:
- url: "http://SERVER_IP:EXTERNAL_PORT"
passHostHeader: true