- New subdomain -> to your plesk server
- Add subdomain to plesk
- Install Let's Encrypt
- Install Docker Extension
- Search for the baserow/baserow image
- Add a container
- Setup the volume
- Run once
- Go back to setting
- Change to manual port -> You will need this port later
- Add a new env
- Added BASEROW_PUBLIC_URL variable to settings with value https://subdomain.domain.com
- In the domain Apache & nginx Settings disable Proxy mode and click save
- Add a new Docker Proxy -> Your subdomain to docker port
- After Proxy mode is disabled add the following additional Nginx directives
Code:location ~ ^/(api|ws)/ { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Real-IP $remote_addr; proxy_http_version 1.1; proxy_set_header Host $host; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_pass http://subdomain.domain.com:your_docker_port_from_step_10; }
- In my case the location / does not work
- Manually edit /system/subdmain.domain.com/conf/nging.conf
- Find
#extension docker begin
location ~ ^/.* {- Add the following code inside
Code:proxy_set_header Connection 'upgrade'; proxy_set_header Upgrade $http_upgrade; proxy_http_version 1.1;
- Save the file
- go to tools/services managment and restart nginx
- Visit the domain, you now have done:
- New domain -> custom nginx settings -> docker proxy
- New certificate
- New docker container -> custom url env
- New nginx.conf
- If everything is ok you can create your first account the websockets work
Note that this means a 2-step-operation. First disable proxy mode, hit apply. Only after proxy mode is already disabled, the additional /location or /(...) segments can be added. It is not possible disable proxy mode and add the additional directives in the same step.You can, but you'll first have to disable Proxy mode and click the Apply button
Good read you've got it working. Note however that manually editing the nginx.conf file of a domain is not a good approach as the file will be overwritten when ever settings are changed on the domain. You should be able to add any additional Nginx directives with / location blocks if you disable Proxy mode first.Hey, team, once again, I had to use the same trick these are my steps:
Hi, could you tell me how to setup volume? Do you mean Volume Mapping? I follow this docs Using Docker, but I don't know what to put in Destination and Source ?Hey, team, once again, I had to use the same trick these are my steps:
Good read you've got it working. Note however that manually editing the nginx.conf file of a domain is not a good approach as the file will be overwritten when ever settings are changed on the domain. You should be able to add any additional Nginx directives with / location blocks if you disable Proxy mode first.
Why does it not work for you? Do you get an when you try to add additional nginx directives?Unfortunately it does not work for me via the additional nginx directives. [...]
@Igcorreia, to elaborate on me previous post, you should skip/remove step 14 from your list.@Igcorreia, this issue has been discussed in another forum topic, with another user as well.
The solution would to remove the Docker Proxy Rules from the domain in Plesk, and instead add all the needed nginx directives manually to the additional nginx directives in Plesk. That way there is no need to edit the nginx.conf file manually and the directives aren't overwritten on updates.
location ~ ^/.* {
proxy_pass http://0.0.0.0:YOUR_DOCKER_PORT;
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;
proxy_set_header Connection 'upgrade';
proxy_set_header Upgrade $http_upgrade;
proxy_http_version 1.1;
}