Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Traefik URL - How to set the ApplicationName and ServiceName #54

Open
githubkelv opened this issue Jul 17, 2019 · 1 comment
Open

Traefik URL - How to set the ApplicationName and ServiceName #54

githubkelv opened this issue Jul 17, 2019 · 1 comment

Comments

@githubkelv
Copy link

githubkelv commented Jul 17, 2019

Got Traefik working on Azure Service Fabric cloud host.
However the url to access my api is as follows:
mycloud.southeastasia.cloudapp.azure.com/api/values

Shouldn't it be (Following the built in reverse proxy by microsoft)
mycloud.southeastasia.cloudapp.azure.com/AppName/ServiceName/api/values

How can I configure it so that Traefik includes the AppName and ServiceName in the url ?

@mgrishkov
Copy link

It seems to me, that there must be some kind of default frontend ruel as it done on service fabric on windows

http(s)://<Cluster FQDN | internal IP>:Port/<ServiceInstanceName>/<Suffix path>?PartitionKey=<key>&PartitionKind=<partitionkind>&ListenerName=<listenerName>&TargetReplicaSelector=<targetReplicaSelector>&Timeout=<timeout_in_seconds>

But I cannot to find any information about it. And all that we can do is to define rules for each services in ServiceManifest.xml like:

<Extensions>
    <Extension Name="Traefik">
        <Labels xmlns="http://schemas.microsoft.com/2015/03/fabact-no-schema">
            <Label Key="traefik.frontend.rule.0001">PathPrefixStrip: /TestApp/Api</Label>
            ...
        </Labels>
    </Extension>
</Extensions>

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants