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

Doesn't work with proxy_pass #72

Open
milabs opened this issue Jan 10, 2023 · 3 comments
Open

Doesn't work with proxy_pass #72

milabs opened this issue Jan 10, 2023 · 3 comments
Labels
enhancement New feature or request wontfix This will not be worked on

Comments

@milabs
Copy link

milabs commented Jan 10, 2023

Cryptogen doesn't allow to specify us "baseUrl" to support the following cases (nginx):

location /cryptogen/ {
    proxy_pass http://127.0.0.1:3000;
}

Using sub_filter "/_app/" "/cryptogen/_app/" doesn't solve the problem.

Please, consider adding baseUrl or similar option and env var for docker.

@cupcakearmy cupcakearmy added the enhancement New feature or request label Jan 10, 2023
@cupcakearmy
Copy link
Owner

Yes, this is not supported rn. could be added if I find time

@nicfab
Copy link

nicfab commented Jun 28, 2024

I installed cryptgeon and I have the same issue.
I need using NGINX and it doesn't work.
Can you please check it to find a solution?
I appreciate your intervention.

@nicfab
Copy link

nicfab commented Jun 28, 2024

I solved the issue.
The line number 10 of the examples/nginx/nginx-tls.conf is wrong and should be deleted.
Regarding the NGINX proxy_pass I solved in the following way:

location / {
      proxy_pass http://127.0.0.1:00000/;
      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;
   }

Where 00000 is the external port.
In that way, it works fine.
By the way, it's not clear to me whether it is possible to change the internal port (8000) in the file docker-compose.yml

@cupcakearmy cupcakearmy added the wontfix This will not be worked on label Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants