cryptgeon
cryptgeon copied to clipboard
Doesn't work with proxy_pass
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.
Yes, this is not supported rn. could be added if I find time
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.
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