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 Proxy #55

Closed
ghost opened this issue Dec 4, 2020 · 3 comments
Closed

Reverse Proxy #55

ghost opened this issue Dec 4, 2020 · 3 comments

Comments

@ghost
Copy link

ghost commented Dec 4, 2020

Hi,

First of all thanks for the great project.

I deploy pwndoc without no problems, but when i try to proxy the system using nginx proxymanager project (NPM) I'm facing the problem "Something went wrong contacting backend". So when I try connect I'm redirect to https://domain:4242 from https://domain.

How can I manage this in NPM.

Thanks.

@yeln4ts
Copy link
Contributor

yeln4ts commented Dec 4, 2020

I don't know if it's possible right now since the frontend is directly contacting the backend on its specific port. But if you manage to do it I'm interested. I was thinking of also doing this for the production environment but would have to change some config in the frontend.

@alexcoman
Copy link

Hello @ShojinSpear, @yeln4ts,

I've discovered this awesome project a few days ago, and I also would like to have it running behind a reverse proxy.
In my case, that reverse proxy is traefik.

An example of a Docker compose file for achieving that can be found at the following URL: docker-compose.traefik.yml

The full patchset can be found here.

@yeln4ts if you considered that the patch is useful I can prepare a merge request.

@yeln4ts
Copy link
Contributor

yeln4ts commented Jan 28, 2021

I found a way to configure nginx for the production environment in order to proxy requests to the backend. So now when running in production you can just use the 8443 port where hostname:8443/api will be proxified to the backend

@yeln4ts yeln4ts closed this as completed Jan 28, 2021
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

2 participants