pglombardo / PasswordPusher

🔐 Securely share sensitive information with automatic expiration & deletion after a set number of views or duration. Track who, what and when with full audit logs.
https://docs.pwpush.com
Apache License 2.0
1.94k stars 341 forks source link

What the the most important folders and files of this working? #2171

Closed riahc3 closed 3 months ago

riahc3 commented 3 months ago

Checklist

❓ Question

Im trying to generate a very specific setup and having some issues.

📎 Additional context

Im gonna explain as best I can

Im gonna allow that employees access

https://internal.mydomain.com

Where the normal PasswordPusher page is and they generate a link and can pass that link

Now

If they go to

https://pwpush.mydomain.com/

It fails

But if they go to https://pwpush.mydomain.com/en/p/xxx , it works.

Ive been able to do this with this snippit in ngnix:


    location /en/p/ {
        proxy_pass http://localhost:5100;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }

    location /es/p/ {
        proxy_pass http://localhost:5100;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }

    location /assets/ {
        proxy_pass http://localhost:5100;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }

    location / {
        deny all;
        error_page 403 = @redirect_to_google;
        return 403;

    }

As you see, I need to let /assets/ pass because certain JS and CSS do not load....That being said, there is still some JS that isnt working correctly (for example when going to the password link, it says [Click Here to Proceed] instead of working automatically )

Could you please tell me what else I need to pass?

Thank you

riahc3 commented 3 months ago

Closing; I believe assets has everything and I made a mistake. My apologies.