I try to use traefik on my qnap nas.
I installed it as a qpkg from the store.
im using this version:
Sadly i didn´t get it to up and running.
If i run this command:
traefik --log.level=DEBUG
This is the whole output:
INFO[0000] Configuration loaded from flags.
INFO[2019-11-27T02:34:36+01:00] Traefik version 2.0.0 built on 2019-09-16T17:35:17Z
DEBU[2019-11-27T02:34:36+01:00] Static configuration loaded {"global":{"checkNewVersion":true},"serversTransport":{"maxIdleConnsPerHost":200},"entryPoints":{"http":{"address":":80","transport":{"lifeCycle":{"graceTimeOut":10000000000},"respondingTimeouts":{"idleTimeout":180000000000}},"forwardedHeaders":{}}},"providers":{"providersThrottleDuration":2000000000},"log":{"level":"DEBUG","format":"common"}}
INFO[2019-11-27T02:34:36+01:00]
Stats collection is disabled.
Help us improve Traefik by turning this feature on :)
More details on: https://docs.traefik.io/v2.0/contributing/data-collection/
DEBU[2019-11-27T02:34:36+01:00] No default certificate, generating one
INFO[2019-11-27T02:34:36+01:00] Starting provider aggregator.ProviderAggregator {}
DEBU[2019-11-27T02:34:36+01:00] Start TCP Server entryPointName=http
WARN[2019-11-27T02:44:37+01:00] A new release has been found: 2.0.5. Please consider updating.
I don´t see any conflicts in port as all other devices a running of different ports from 80 and 443.
Could you all be so kind and help me out to get the web interface running?
I recently had a friend with a QNAP dealing with issues with the container network on the QNAP'OS: it looks like there are a lot of different network interfaces.
How are you running Traefik? It seems you are running it as a binary "as-it": can you use netstat -anp to list the opened ports and check which one are used by Traefik's PID?
So the Dashboard is now running.
The issues was that the Default values which are mentioned in the toml page aren´t defaut.
So the Dashbaord wasn´t enabled.
Where do i put my configuration for middleware and so on?
As I understand this is the way to configure it for traefik 2.
But if i change on the webpage it tells me there are no services or routers.
Update:
Uff my bad i should read with a little more patient.
I didn´t undersatnd i need to make a adittional file.
or it was more an issue i didn´t defined [http].
Update2:
Ok I am making some Progress.
At my example with ombi.
I now come to a landing page where it tells me loading.
It seems to me usually it would redirect me to /login but this seems to not work anymore.
The important error in your case is the "Failed to load resource: the server responded with a status of 404 (Not Found)". Can you check the network tab of you inspector and locate all the resources in error?
(Don't forget to clean your cache: if you did not, then the HTML code is the one from before,)
If i refresh the page the 404 error dissapears.
Could it be that all the */images/favicon/apple-touch-icon.png and all these informations don get throug traefik.
So it loks like only the plain request but all additional informations like pictures get blocked.
I made some progress these days.
I`m connecting to my server with the already existing ddns and the using prefixes to determine the service. As for ombi it worked out to change the base url.
But for the other services i didn´t found such a option.
So i need to strip my prefix from the domain im calling.
But here is where the issue begins. As I need to load some additional data after calling the sites it fails.
Due to the lack of the prefix which now aswell is missing in the response.
Is there as possiblity to add a prefix during the response?
Hi @9Mad-Max5, alas it not possible, since this would mean modifying the body of the HTTP answers, which would be more the job for a web (or caching) server, while Traefik only operates at URL / headers level as a pure reverse-proxy.
There is one easy solution: using subdomain for each application. Let's say you have the domain home.madmax.io, then you can create a wildcard DNS record *.home.madmax.io pointing to your IP, and then adapt the frontend rules: rule=Host(`ombi.madmax.io`) for ombi for instance (and remove any addprefix or stripprefx thingy).
actually for some pages the solution was already to add a slash after my prefix.
But I didn´t like to use it with a prefix, just my personal opinion, and a add prefix after stripping the old one didn´t worked i just made a redirect with a new middleware and a additional router.
I think i will post it here later as a example.
But not for all traefik it self as an example didn´t helped it.
Is there a option for a Base url in traefik itself?
Because QNAP has a Let´s enrypt engine and a DDNS already builed in i didn´t use acme.
So im stuck to the myqnapcloud.com domain but that honestly don´t bother me.
I just need to import the bare certificats which are stored on the nas itself in traefik and my https is running.
But due to this i can´t change the beginning ot the domain.
And i don´t wan´t to buy a no-ip account to have multiple domains, because three are not enought and the reactivation of multiples ones is just anyoning.
It is just a private server.
And as long it works with prefixes I will stick to those.