Add README & deployment examples
This commit is contained in:
12
deployment/nginx.conf
Normal file
12
deployment/nginx.conf
Normal file
@@ -0,0 +1,12 @@
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name ledger.example.com;
|
||||
|
||||
location / {
|
||||
auth_basic "private zone";
|
||||
auth_basic_user_file /etc/nginx/myusers;
|
||||
|
||||
proxy_pass http://127.0.0.1:8000;
|
||||
}
|
||||
}
|
||||
12
deployment/systemd.service
Normal file
12
deployment/systemd.service
Normal file
@@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=Ledger Quick Note
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=www-data
|
||||
Group=www-data
|
||||
WorkingDirectory=/path/to/ledger-quicknote
|
||||
ExecStart=/path/to/ledger-quicknote/ledger-quicknote -f /path/to/ledger/journal.txt -w /path/to/ledger
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user