авг 14 20:01:10 Djabic systemd[1]: Started traefik.service - Traefik is an open-source Edge Router that makes publishing your services a fun and easy experience.
авг 14 20:01:10 Djabic traefik[7499]: time="2023-08-14T20:01:10+04:00" level=info msg="Configuration loaded from file: /etc/traefik/traefik.toml"
авг 14 20:01:10 Djabic traefik[7499]: time="2023-08-14T20:01:10+04:00" level=error msg="Cannot start the provider *file.Provider: Near line 4 (last key parsed 'http.routers.frps'): expected a top-level item to end with a newline, comment, or EOF, but got 'g' instead"
Share your full Traefik static and dynamic config, and docker-compose.yml
if used.
Use 3 backticks in front and after code, or select code and press </>
button. In yaml every space matters.
Your rule
looks completely broken.
[http.routers]
[http.routers.frps]
rule = "Host(`proslushka23.com`) || HostRegexp(`{subdomain:[a-z]+}.proslushka23.com`) "
service = "frps"
[http.routers]
[http.routers.frps-secure]
rule = "Host(`proslushka23.com`) || HostRegexp(`{subdomain:[a-z]+}.proslushka23.com`) "
service = "frps"
1 Like
can you provide text instead of screenshots?
1 Like
/etc/traefik/dynamic_conf.toml:
[http.routers]
rule = "Host(`proslushka23.ru`)"
[http.routers.frps]
entryPoints = ["web"]
rule = "Host(`proslushka23.ru`)"
service = "frps"
[http.routers.frps-secure]
entryPoints = ["websecure"]
rule = "Host(`proslushka23.ru`)"
service = "frps"
[http.routers.frps-secure.tls]
certResolver = "le" # From static configuration
[[http.routers.frps-secure.tls.domains]]
main = "proslushka23.ru"
sans = ["*.proslushka23.ru"]
[http.services]
[http.services.frps.loadBalancer]
[[http.services.frps.loadBalancer.servers]]
url = "http://127.0.0.1:8080/"
The problem is the field rule
in line 2 of your file.
The correction (the indentation is only for the readability):
[http.routers]
[http.routers.frps]
entryPoints = ["web"]
rule = "Host(`proslushka23.ru`)"
service = "frps"
[http.routers.frps-secure]
entryPoints = ["websecure"]
rule = "Host(`proslushka23.ru`)"
service = "frps"
[http.routers.frps-secure.tls]
certResolver = "le" # From static configuration
[[http.routers.frps-secure.tls.domains]]
main = "proslushka23.ru"
sans = ["*.proslushka23.ru"]
[http.services]
[http.services.frps.loadBalancer]
[[http.services.frps.loadBalancer.servers]]
url = "http://127.0.0.1:8080/"
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.