-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PREFIX does not change path for static files #7
Comments
@rayjlinden what proxy are you using? and what is your configuration? are you using Kubernetes? |
I'm using caddy2. (caddyserver.com)
I wanted to serve the UI out of a sub dir. I set the env var: URL_PREFIX:
"/allureui"
My Caddyfile config looks like this:
```
route /env-config.js {
reverse_proxy http://allureui:5252
}
route /static/* {
reverse_proxy http://allureui:5252
}
route /allureui/* {
jwt
reverse_proxy http://allureui:5252
}
```
I had to add the routes for /static/* and /env-config.js -- then everything
worked. However, I would have expected
the references to the static assets and env-config.js to also be prefixed
with /allureui/
…On Tue, Sep 22, 2020 at 2:25 AM fescobar ***@***.***> wrote:
@rayjlinden <https://github.com/rayjlinden> what proxy are you using? and
what is your configuration? are you using Kubernetes?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#7 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKE5LWRWG2R2BRWJ4AFPN2TSHBUOZANCNFSM4RVEW4NA>
.
|
@rayjlinden you have to set up a little different when it's a Single Page Aplication (SPA). Fortunately, it's work for you. |
Same with Nginx:
Works only with separate env-config.js and static route:
That's can conflict with my "location /" that is not ok as for me |
Thanks @oleksandr-hyuna for the info. I will use this when I try to fix this problem. It's in the backlog. |
Facing the same issue. I am using Istio virtual services and have to map the root
|
@fescobar There's a base tag in index.html file which makes all links relative to the server root. It appears that it's not really necessary for the app to work. It's elimination can fix this issue. |
Hello, Any news about this issue ? I set this in my docker-compose for allure routing :
I set :
But when I connect to my.example.com/allure I have error concerning loading the static files. |
Hello @fescobar any ETA for the static files for URL_PREFIX to work? I have deployed on k8s and it fails for static path. as other UI works with correctly having base url_prefix |
Hi everybody |
I'm trying to put the ui behind a proxy.
I set URL_PREFIX: "/allureui"
However, the page once it loads is trying to get assets like:
/static/js/2.305ecc37.chunk.js
Is there something I can do to serve the assets out the url_prefix as well?
The text was updated successfully, but these errors were encountered: