Manav Rathi 2024-04-04 21:04:19 +05:30
parent 3ed2186dcf
commit e170b6811d
No known key found for this signature in database
4 changed files with 8 additions and 4 deletions

View file

@ -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
View 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

View file

@ -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";
}
}

View file

@ -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 \