-
Notifications
You must be signed in to change notification settings - Fork 975
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
Support for context path/ mounting #19
Comments
Hi Norman, You can easily achieve that by changing the nginx configuration, just like;
Please tell me if I'm missing something. |
Already tried that and it didn't work. My guess is that it'll work for the api app since there are no redirects nor static file requests. For example if I use
and when I'm not logged in then countly redirects to An nginx based solution would be fine, but I guess that won't work. |
Thats right, API will work fine but the frontend app will have issues since every redirection/post/get is hardcoded there. In order to support this client side javascripts + express/app.js needs to read a configuration value from somewhere. I think we can add two configs;
and perform every operation accordingly. Also countly.install.sh can ask a path from the user during installation and perform the changes in the files automatically. |
What do you think about the static files? All static resources are referenced through absolute paths. So this config variable should be also accessable in template/html files. As I'm new to express: I think that the mountPath option should be exposed to all views that reference assets. I'm trying to figure this out and hopefully provide a PR. |
The first thing that I can think of is using a I'll keep you posted if I come up with anything else. |
Another thing that needs to be done here is move all images under the css path because of http://stackoverflow.com/questions/2161377/is-the-html-base-tag-also-honored-by-scripting-and-css and here is the suggested solution http://stackoverflow.com/questions/3812375/specifying-base-url-for-css and I think I might have the pull request ready soon. |
Hi folks,
right now I use one machine to deploy all my analytics stuff (sentry, countly). Usually I run those services so that they only listen on localhost. Then I use nginx to proxy the calls to the individual services. Sometimes there's also load balancing involved through nginx' upstream module.
Since I want to run all services as "subdirectories" it would be necessary that countly supports something like this:
So my final setup would look something like this:
What do you think of supporting this?
The text was updated successfully, but these errors were encountered: