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

Reverse proxying mmpm ui fails due to api path resolution #190

Open
jhogendorn opened this issue Jul 23, 2024 · 4 comments
Open

Reverse proxying mmpm ui fails due to api path resolution #190

jhogendorn opened this issue Jul 23, 2024 · 4 comments

Comments

@jhogendorn
Copy link

If you put the mmpm ui behind a reverse proxy to give it a domain and 80/443 access, it loads the main ui but cant resolve any api endpoints due to appending the expected 7890 port to the base url on this line:

return `http://${window.location.hostname}:7891/api/${path}`;

The url could maybe be built in a way that accommodates this better?

@greedyvegan
Copy link

python3 -m pip install --upgrade mmpm

error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.

If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.

For more information visit http://rptl.io/venv

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.

@Bee-Mar
Copy link
Owner

Bee-Mar commented Sep 20, 2024

python3 -m pip install --upgrade mmpm

error: externally-managed-environment

× This environment is externally managed

╰─> To install Python packages system-wide, try apt install

python3-xyz, where xyz is the package you are trying to

install.



If you wish to install a non-Debian-packaged Python package,

create a virtual environment using python3 -m venv path/to/venv.

Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make

sure you have python3-full installed.



For more information visit http://rptl.io/venv

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.

hint: See PEP 668 for the detailed specification.

This is unrelated to the issue created and is also unrelated to MMPM. The error message you posted includes instructions to solve the problem, and you can see this stack overflow link for other options:

https://stackoverflow.com/questions/75608323/how-do-i-solve-error-externally-managed-environment-every-time-i-use-pip-3

@smellouk
Copy link

smellouk commented Nov 9, 2024

Would be great to consider, I believe there are many persons running stuff behind a reverse proxy.

@Bee-Mar
Copy link
Owner

Bee-Mar commented Nov 10, 2024

@jhogendorn @smellouk this wouldn't be a big deal to add, but I'm not sure when I'll have time to implement it. If either of you are willing, feel free to add the feature and make a pull request.

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