Reverse proxying mmpm ui fails due to api path resolution
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:
https://github.com/Bee-Mar/mmpm/blob/c410f73b9cbe83b4df9b9886eff365396e02d60e/ui/src/app/services/api/base-api.ts#L28
The url could maybe be built in a way that accommodates this better?
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.
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/venvnote: 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
Would be great to consider, I believe there are many persons running stuff behind a reverse proxy.
@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.