From 689e2662d036e0c605f56d52bc96ba339b8ff456 Mon Sep 17 00:00:00 2001 From: Logan Williams Date: Wed, 5 Oct 2022 11:00:19 +0200 Subject: [PATCH] Create README.md --- api/README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 api/README.md diff --git a/api/README.md b/api/README.md new file mode 100644 index 0000000..d26cbf2 --- /dev/null +++ b/api/README.md @@ -0,0 +1,18 @@ +## systemd configuration + +`/etc/systemd/system/osm-api.service` + +``` +[Unit] +Description=Gunicorn instance to serve osm-api +After=network.target + +[Service] +User=root +Group=www-data +WorkingDirectory=/root/osm-api +ExecStart=/usr/local/bin/pipenv run gunicorn --workers 3 -t 120 --bind 0.0.0.0:5000 api:app + +[Install] +WantedBy=multi-user.target +```