Skip to content
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

Change base path of web server? #680

Open
mateogianolio opened this issue Nov 27, 2023 · 4 comments
Open

Change base path of web server? #680

mateogianolio opened this issue Nov 27, 2023 · 4 comments

Comments

@mateogianolio
Copy link

Summary

Maybe this has been asked before but I have searched all the issues here and pixl-server-web and nothing really pops up. I want to host the cronicle web server under a reverse proxy at the subfolder /cronicle. Is there no way to set base path on the cronicle web server?

Setting base_app_url has no effect.

Steps to reproduce the problem

Set up a reverse proxy with nginx that uses proxy_pass:

location /cronicle {
    proxy_pass http://localhost:3012/;
    proxy_http_version 1.1;
    proxy_redirect off;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header Host $http_host;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
    proxy_read_timeout 86400;
}

The html files load but the static assets (js/css etc) do not. This is expected since the base path in cronicle is /. I would like to be able to set base path to /cronicle.

Your Setup

N/A

Operating system and version?

N/A

Node.js version?

N/A

Cronicle software version?

N/A

Are you using a multi-server setup, or just a single server?

Single serfver

Are you using the filesystem as back-end storage, or S3/Couchbase?

N/A

Can you reproduce the crash consistently?

N/A

Log Excerpts

N/A

@jhuckaby
Copy link
Owner

I'm so sorry, but I don't know of any way to accomplish this. Cronicle expects to be hosted on the root / URI path.

@mateogianolio
Copy link
Author

Ok, thanks for the quick reply! Feel free to close this :)

@mikeTWC1984
Copy link

@mateogianolio you can configure nginx to have your cronicle under http://somehost/cronicle. I think you need to provide some extra paths for socket.io.. Probably start in with browser dev tools / network, see what js files are missing. Search for nginx in issues, I think this was discussed few times

@miversen33
Copy link

Anyway, have you ever wondering how to backup and restore cronicle schedule from one server to another server?

This has absolutely no relevance to the issue

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

No branches or pull requests

4 participants