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

Duplication of baseUrl in uploadAppPath #256

Open
Onslivion opened this issue Jan 8, 2023 · 0 comments
Open

Duplication of baseUrl in uploadAppPath #256

Onslivion opened this issue Jan 8, 2023 · 0 comments

Comments

@Onslivion
Copy link

Onslivion commented Jan 8, 2023

When configuring these two variables as such;

  // set to serve PsiTransfer from a sub-path
  "baseUrl": '/securedownload',
  // use to set custom upload url (subfolder to baseUrl)
  "uploadAppPath": '/upload/',

The error page pops up, saying that a download bucket was not found. Notably this showed that there's a duplication of the baseUrl into the upload URL;

Screenshot 2023-01-08 at 16 18 41

I've found that this line in config.js appears to be causing this duplication;
config.uploadAppPath = config.baseUrl.substr(0, config.baseUrl.length - 1) + config.uploadAppPath;
and by commenting it out, I was able to use the URL /securedownload/upload/ without issue. This change was made in this commit

Other notes about my configuration;

  • I am using nginx reverse proxies to access an internal file server where psitransfer is running. It basically does a double proxy pass, from the main web server to the file server then to psitransfer;
    webserver: proxy_pass "http://[fileserverip]:80;
    fileserver: proxy_pass "http://127.0.0.1:3000";

So far I haven't found a reason why nginx would be the issue here, but I'm not 100% sure since I'm not an expert.

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

1 participant