Updated Install Wekan Docker in production (markdown)

Lauri Ojansivu 2017-10-14 19:10:41 +03:00
parent 7561842242
commit 6f9f14f891

@ -16,59 +16,9 @@ https://github.com/wekan/wekan-mongodb
## 4. Configure webserver as a front-end proxy
### Nginx
In configuration:
```nginxConf
server {
listen 123.45.67.89:80;
server_name mytodo.org;
access_log /var/log/nginx/mytodo_access.log;
error_log /var/log/nginx/mytodo_error.log;
[...]
}
```
Add the following after the `error_log` line:
```nginxConf
location / {
proxy_read_timeout 300;
proxy_connect_timeout 300;
proxy_redirect off;
proxy_set_header Host $http_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_pass http://127.0.0.1:8081;
}
location ~ websocket$ {
proxy_pass http://websocket;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
}
```
And the following above your `server` line
```nginxConf
upstream websocket {
server 127.0.0.1:8081;
}
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
```
* [Caddy](https://github.com/wekan/wekan/wiki/Caddy-Webserver-Config)
* [Nginx](https://github.com/wekan/wekan/wiki/Nginx-Webserver-Config)
* [Apache](https://github.com/wekan/wekan/wiki/Apache)
## 5. Launch Wekan