Tweaks
Refs: https://github.com/knadh/listmonk/blob/master/listmonk-simple.service#L16
This commit is contained in:
parent
3ed2186dcf
commit
e170b6811d
4 changed files with 8 additions and 4 deletions
|
@ -35,7 +35,7 @@ sudo mv listmonk.nginx.conf /root/nginx/conf.d
|
|||
> ```sh
|
||||
> scp services/listmonk/initialize-db.sh <instance>:
|
||||
>
|
||||
> sudo ./initialize-db.sh
|
||||
> sudo sh initialize-db.sh
|
||||
> rm initialize-db.sh
|
||||
> ```
|
||||
|
||||
|
|
3
infra/services/listmonk/initialize-db.sh
Normal file → Executable file
3
infra/services/listmonk/initialize-db.sh
Normal file → Executable file
|
@ -9,7 +9,6 @@ set -o xtrace
|
|||
|
||||
docker pull listmonk/listmonk
|
||||
|
||||
docker run --rm --name listmonk \
|
||||
-p 9000:9000 \
|
||||
docker run -it --rm --name listmonk \
|
||||
-v /root/listmonk/config.toml:/listmonk/config.toml:ro \
|
||||
listmonk/listmonk ./listmonk --install
|
||||
|
|
|
@ -18,7 +18,9 @@ server {
|
|||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
|
||||
# Use HTTP/1.1 when talking to upstream
|
||||
# Also, while not necessary (AFAIK), also allow websockets.
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Connection "";
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,6 +10,9 @@ WantedBy=multi-user.target
|
|||
ExecStartPre=docker pull listmonk/listmonk
|
||||
ExecStartPre=-docker stop listmonk
|
||||
ExecStartPre=-docker rm listmonk
|
||||
ExecStartPre=-docker run --rm --name listmonk \
|
||||
-v /root/listmonk/config.toml:/listmonk/config.toml:ro \
|
||||
listmonk/listmonk --upgrade --yes
|
||||
ExecStart=docker run --name listmonk \
|
||||
-p 9000:9000 \
|
||||
-v /root/listmonk/config.toml:/listmonk/config.toml:ro \
|
||||
|
|
Loading…
Add table
Reference in a new issue