[GH-ISSUE #108] Allow custom path #76

Closed
opened 2026-03-03 16:04:14 +03:00 by kerem · 13 comments
Owner

Originally created by @thenets on GitHub (Jan 9, 2018).
Original GitHub issue: https://github.com/mthenw/frontail/issues/108

I'm trying to implement the Frontail with my test environment.

Problem:
I can't expose too many ports to my team test. So I decide add paths inside the port 80 but the Frontail doesn't expected that and don't rewrite the path of JS dependencies.

I added the path "tail-archiver"
image

And errors was raised cause don't found the dependencies:
image

Originally created by @thenets on GitHub (Jan 9, 2018). Original GitHub issue: https://github.com/mthenw/frontail/issues/108 I'm trying to implement the Frontail with my test environment. Problem: I can't expose too many ports to my team test. So I decide add paths inside the port 80 but the Frontail doesn't expected that and don't rewrite the path of JS dependencies. I added the path "tail-archiver" ![image](https://user-images.githubusercontent.com/2138276/34743908-90e1f8e8-f572-11e7-9bb6-fe20d2b80b44.png) And errors was raised cause don't found the dependencies: ![image](https://user-images.githubusercontent.com/2138276/34743951-bf4b6f5c-f572-11e7-91e1-323108dfebbf.png)
kerem closed this issue 2026-03-03 16:04:14 +03:00
Author
Owner

@mthenw commented on GitHub (Jan 10, 2018):

Hey,

what's the setup? Do you use some kind of proxy between browser and frontail?

<!-- gh-comment-id:356621764 --> @mthenw commented on GitHub (Jan 10, 2018): Hey, what's the setup? Do you use some kind of proxy between browser and frontail?
Author
Owner

@thenets commented on GitHub (Jan 11, 2018):

@mthenw exactly. For debug of test environment I use Sentry and I'm trying to use this project to debug. I'm using the load balancer of Rancher as a proxy.

<!-- gh-comment-id:356930263 --> @thenets commented on GitHub (Jan 11, 2018): @mthenw exactly. For debug of test environment I use Sentry and I'm trying to use this project to debug. I'm using the load balancer of Rancher as a proxy.
Author
Owner

@bberenberg commented on GitHub (Jan 17, 2018):

We're hoping to do something similar with nginx. In fact the hope is to run multiple of these in parallel so that each different path provides access to a different log file.

<!-- gh-comment-id:358423637 --> @bberenberg commented on GitHub (Jan 17, 2018): We're hoping to do something similar with nginx. In fact the hope is to run multiple of these in parallel so that each different path provides access to a different log file.
Author
Owner

@thenets commented on GitHub (Jan 17, 2018):

Yes @bberenberg. That's what I want too but using HAProxy.

<!-- gh-comment-id:358432247 --> @thenets commented on GitHub (Jan 17, 2018): Yes @bberenberg. That's what I want too but using HAProxy.
Author
Owner

@mthenw commented on GitHub (Jan 25, 2018):

Closing this one as I think it should be solved as I described in https://github.com/mthenw/frontail/issues/84. Let me know what do you think!

<!-- gh-comment-id:360517420 --> @mthenw commented on GitHub (Jan 25, 2018): Closing this one as I think it should be solved as I described in https://github.com/mthenw/frontail/issues/84. Let me know what do you think!
Author
Owner

@thenets commented on GitHub (Jan 26, 2018):

@mthenw I think is different. The problem I report is related to URL.
In the current frontail release I can't set prefix in the URL:
http://localhost/ (works perfect)
http://localhost/myprefix/ (stop working)

I think is not related to #84.

<!-- gh-comment-id:360767739 --> @thenets commented on GitHub (Jan 26, 2018): @mthenw I think is different. The problem I report is related to URL. In the current frontail release I can't set prefix in the URL: http://localhost/ (works perfect) http://localhost/myprefix/ (stop working) I think is not related to #84.
Author
Owner

@bberenberg commented on GitHub (Jan 31, 2018):

Agree with the above. This one is specific to having it run with a context path, regardless of the number of instances running. #84 is about having a single instance show multiple logs.

<!-- gh-comment-id:362056912 --> @bberenberg commented on GitHub (Jan 31, 2018): Agree with the above. This one is specific to having it run with a context path, regardless of the number of instances running. #84 is about having a single instance show multiple logs.
Author
Owner

@mzgaljic commented on GitHub (Jan 31, 2018):

Can his be re-opened? Looking to have this feature as well...want to run behind an nginx proxy on a custom path.

<!-- gh-comment-id:362070413 --> @mzgaljic commented on GitHub (Jan 31, 2018): Can his be re-opened? Looking to have this feature as well...want to run behind an nginx proxy on a custom path.
Author
Owner

@mthenw commented on GitHub (Jan 31, 2018):

Ok, I'm reopening this issue. Will try to work on that next week.

<!-- gh-comment-id:362077639 --> @mthenw commented on GitHub (Jan 31, 2018): Ok, I'm reopening this issue. Will try to work on that next week.
Author
Owner

@thenets commented on GitHub (Feb 1, 2018):

Thanks @mthenw! If you want help give me the way to add this feature and I'll do what I can.

<!-- gh-comment-id:362136520 --> @thenets commented on GitHub (Feb 1, 2018): Thanks @mthenw! If you want help give me the way to add this feature and I'll do what I can.
Author
Owner

@mthenw commented on GitHub (Mar 14, 2018):

@bberenberg @thenets I started working on this and I have few thoughts.

If there will be additional path param that will cause that frontail will expose frontend on specific URL path it still doesn't solve the problem completely as you are not able to expose multiple frontail instances on the same port.

Can you guys share me your nginx/lb configuration? I think it should be doable without adding anything in the frontail.

<!-- gh-comment-id:372973252 --> @mthenw commented on GitHub (Mar 14, 2018): @bberenberg @thenets I started working on this and I have few thoughts. If there will be additional `path` param that will cause that frontail will expose frontend on specific URL path it still doesn't solve the problem completely as you are not able to expose multiple frontail instances on the same port. Can you guys share me your nginx/lb configuration? I think it should be doable without adding anything in the frontail.
Author
Owner

@bberenberg commented on GitHub (Mar 15, 2018):

Just a normal reverse proxy is my goal

server {
    listen www.example.com:80;
    server_name www.example.com;
    location /frontail1 {
        proxy_set_header X-Forwarded-Host $host;
        proxy_set_header X-Forwarded-Server $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 
        proxy_pass http://hostname:8080/;
        client_max_body_size 10M;
    }
    location /frontail2 {
        proxy_set_header X-Forwarded-Host $host;
        proxy_set_header X-Forwarded-Server $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 
        proxy_pass http://hostname:8081/;
        client_max_body_size 10M;
    }
}
<!-- gh-comment-id:373466486 --> @bberenberg commented on GitHub (Mar 15, 2018): Just a normal reverse proxy is my goal ``` server { listen www.example.com:80; server_name www.example.com; location /frontail1 { proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Server $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass http://hostname:8080/; client_max_body_size 10M; } location /frontail2 { proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Server $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass http://hostname:8081/; client_max_body_size 10M; } } ```
Author
Owner

@mthenw commented on GitHub (Apr 7, 2018):

@bberenberg @thenets I just released version 4.2.0. Let me know if it works :)

<!-- gh-comment-id:379487067 --> @mthenw commented on GitHub (Apr 7, 2018): @bberenberg @thenets I just released version 4.2.0. Let me know if it works :)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/frontail#76
No description provided.