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

Help with public gateway docker #2498

Open
2 tasks done
magaiverpr opened this issue Sep 6, 2024 · 8 comments
Open
2 tasks done

Help with public gateway docker #2498

magaiverpr opened this issue Sep 6, 2024 · 8 comments
Labels

Comments

@magaiverpr
Copy link

Checklist

❓ Question

Hello,

I am trying to use the new container "Public Gateway", the new container mode.

Locally in my kubernetes, I am using password.mysite.local, and in Azure I am using password.mysite.com.

In my local kubernetes I am using the parameter PWP__OVERRIDE_BASE_URL: https://password.mysite.com, thats is sending correctly to the public gateway.

But when I access the public link, say that the link expired or not exist....

In azure purely used the container, without any ENV. There is more ENVs to configure both local and public dockers? I tried to find some documentations about this config, but didnt find any....

📎 Additional context

In my local kubernetes I am not using any database, only sending passwords, without any logs and login.

Copy link

github-actions bot commented Sep 6, 2024

Hello @magaiverpr, thanks for contributing to the Password Pusher community! We will respond as soon as possible.

@pglombardo
Copy link
Owner

Hi @magaiverpr - The public gateway container and the pwpush container should have both the same settings and environment. This way they both are connected to the same database and behave equally.

This needs to be clarified in the documentation admittedly. I'll update the docs soon.

Could you try this and let me know?

@pglombardo
Copy link
Owner

I added a note to the documentation here:
https://docs.pwpush.com/docs/public-gateway/#deployment-architecture-example

@magaiverpr
Copy link
Author

One question:

Is mandatory to use a DB to get the public gateway to work? I am using the ephemeral version, without any kind of DB (no need to store anything, even if the docker restart).

@pglombardo
Copy link
Owner

pglombardo commented Sep 6, 2024

When using ephemeral, pwpush uses an SQLite3 database file at /opt/PasswordPusher/db/db/sqlite3*. This file gets thrown away on container restart.

If you were to put this directory on a shared filesystem it would work fine for low traffic sites.

Unfortunately the two containers need to have a common knowledge source to properly function.

I hope this helps.

@pglombardo
Copy link
Owner

Hi @magaiverpr - have you made any progress on this issue?

You might be looking for a proxy instead.

@Viajaz
Copy link

Viajaz commented Sep 16, 2024

Ensure the public and private pwpush containers are the same version/using the same tag and that your reverse proxy rules are configured correctly for the password URLs, the locale is now query parameter and deletion URL has changed.

@pglombardo
Copy link
Owner

Good point - I've added this to the docs:
https://docs.pwpush.com/docs/public-gateway/#tips--best-practices

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

No branches or pull requests

3 participants