mirror of
https://github.com/plankanban/planka.git
synced 2026-02-05 00:39:58 +03:00
NGINX Proxy Pass with SSL Support #13
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @gamelaster on GitHub (Aug 13, 2020).
This is my nginx proxy pass configuration for planka (with SSL).
@ghost commented on GitHub (Aug 24, 2020):
Doesn't work for me. How does your docker-compose yml file looks like? 3000-> 1337?
@gamelaster commented on GitHub (Aug 24, 2020):
@Git-Cluster
So I just bind local 1337 port for 1337 port in container. Also, my docker-compose.yaml is based on original one without any much changes. (BTW, my nginx is running on host)
@ghost commented on GitHub (Aug 24, 2020):
This is what i have
ports: - 127.0.0.1:1337:1337 environment: - BASE_URL=http://127.0.0.1:1337I even tried
ports: - 127.0.0.1:1337:1337 environment: - BASE_URL=http://planka.test.com:1337And the nginx config is exactly the same as yours
`
server {
server_name planka.test.com;
}
`
Websockets still ain't connected properly.
Mind if I get some help?
Thanks!
@gamelaster commented on GitHub (Aug 24, 2020):
Please, can you check what is in your Devtools console (according to gif down)? There should be and error message.

@ghost commented on GitHub (Aug 24, 2020):
This is what I get, indeed it has an error.
@gamelaster commented on GitHub (Aug 24, 2020):
Very strange. Are you sure that you reloaded your config? Also, which nginx version do you have?
This error happens when you don't have this code in your nginx location:
@ghost commented on GitHub (Aug 24, 2020):
Pretty sure, I did alot of googling and many are certain that this will remove the error but not for me.
@meltyshev commented on GitHub (Aug 24, 2020):
Hi, @Git-Cluster!
BASE_URLshould contain exactly the same host asserver_namefrom nginx config. Try something like this:BASE_URL=https://planka.test.com(it should have an https scheme and without port).@ghost commented on GitHub (Aug 24, 2020):
Perfect, it works right now! Thanks everyone for the help!
@tricoos commented on GitHub (Jun 16, 2021):
Just in case - here is my working config:
nginx.conf
in docker-compose.yml
BASE_URL=https://tasks.example.comI never saw any 400 Bad Request in Chrome, however when I switched to Firefox I was finally able to see the 400 error. After then changing the BASE_URL and restarting the Docker container (!) it started working!
@pluveto commented on GitHub (Aug 22, 2022):
HTTP works but Websocket not
@gamelaster commented on GitHub (Aug 22, 2022):
@pluveto Please post your nginx site config.
@pluveto commented on GitHub (Aug 22, 2022):
@gamelaster
Exact same config as @tricoos 's but domain.
Finally resolved by reinstall containers without changing nginx config. I guess may be caused by a strange state of the running nodejs process.
@daniel-hiller commented on GitHub (Sep 23, 2023):
Sample NGIX configuration
https://docs.planka.cloud/docs/Configuration/webserver/NGINX