Skip to content

Instantly share code, notes, and snippets.

@simonw
Created Aug 22, 2021
Embed
What would you like to do?
/etc/systemd/system/datasette.service
[Unit]
Description=Datasette
After=network.target
[Service]
Type=simple
User=dogsheep
Environment=DATASETTE_SECRET=...
Environment=SIMON_PASSWORD_HASH='pbkdf2_sha256$260000$...'
WorkingDirectory=/home/dogsheep
ExecStart=/home/dogsheep/datasette-venv/bin/datasette serve -h 127.0.0.1 -p 8000 \
-m /home/dogsheep/metadata.yaml \
--setting sql_time_limit_ms 20000 \
--setting facet_time_limit_ms 5000 \
--setting template_debug 1 \
--setting force_https_urls 1 \
beta.db twitter.db healthkit.db github.db swarm.db photos.db genome.db simonwillisonblog.db pocket.db \
hacker-news.db memories.db
Restart=on-failure
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment