Compare commits
2 commits
6966727117
...
8633124883
| Author | SHA1 | Date | |
|---|---|---|---|
| 8633124883 | |||
| 72aba0d579 |
4 changed files with 9 additions and 5 deletions
|
|
@ -18,9 +18,9 @@ these are all very basic commands, captured in script form for convenience!)
|
||||||
- `setup-plausible.yml`: Sets up the Plausible server itself, as a `systemd`
|
- `setup-plausible.yml`: Sets up the Plausible server itself, as a `systemd`
|
||||||
service running Plausible's official Docker container.
|
service running Plausible's official Docker container.
|
||||||
|
|
||||||
You can run them individually, or all at once, with `run.sh`:
|
You can run them individually, or all at once, with `ansible-playbook`:
|
||||||
|
|
||||||
run.sh setup-all.yml
|
ansible-playbook setup-all.yml
|
||||||
|
|
||||||
If you're interested in setting up your own Plausible service, this could be
|
If you're interested in setting up your own Plausible service, this could be
|
||||||
useful as a starting point, there's not much custom here! Just a couple things
|
useful as a starting point, there's not much custom here! Just a couple things
|
||||||
|
|
|
||||||
5
ansible.cfg
Normal file
5
ansible.cfg
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
[defaults]
|
||||||
|
inventory = inventory.cfg
|
||||||
|
|
||||||
|
[privilege_escalation]
|
||||||
|
become_ask_pass = True
|
||||||
1
run.sh
1
run.sh
|
|
@ -1 +0,0 @@
|
||||||
ansible-playbook -i inventory.cfg --ask-become-pass $@
|
|
||||||
|
|
@ -29,7 +29,7 @@
|
||||||
content: |
|
content: |
|
||||||
server {
|
server {
|
||||||
server_name analytics.openneo.net;
|
server_name analytics.openneo.net;
|
||||||
listen 80;
|
listen [::]:80;
|
||||||
if ($host = analytics.openneo.net) {
|
if ($host = analytics.openneo.net) {
|
||||||
return 301 https://$host$request_uri;
|
return 301 https://$host$request_uri;
|
||||||
}
|
}
|
||||||
|
|
@ -37,7 +37,7 @@
|
||||||
|
|
||||||
server {
|
server {
|
||||||
server_name analytics.openneo.net;
|
server_name analytics.openneo.net;
|
||||||
listen 443 ssl;
|
listen [::]:443 ssl;
|
||||||
ssl_certificate /etc/letsencrypt/live/analytics.openneo.net/fullchain.pem;
|
ssl_certificate /etc/letsencrypt/live/analytics.openneo.net/fullchain.pem;
|
||||||
ssl_certificate_key /etc/letsencrypt/live/analytics.openneo.net/privkey.pem;
|
ssl_certificate_key /etc/letsencrypt/live/analytics.openneo.net/privkey.pem;
|
||||||
include /etc/letsencrypt/options-ssl-nginx.conf;
|
include /etc/letsencrypt/options-ssl-nginx.conf;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue