From aa1183b02203cf39e6a419061bf1d48f55c8ae1f Mon Sep 17 00:00:00 2001 From: Pavel 'LEdoian' Turinsky Date: Wed, 24 Feb 2021 09:54:39 +0100 Subject: [PATCH] Add sample config files --- conf/nginx.conf | 7 +++++++ conf/systemd.service | 13 +++++++++++++ conf/uwsgi.ini | 14 ++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 conf/nginx.conf create mode 100644 conf/systemd.service create mode 100644 conf/uwsgi.ini diff --git a/conf/nginx.conf b/conf/nginx.conf new file mode 100644 index 0000000..5fcd9c1 --- /dev/null +++ b/conf/nginx.conf @@ -0,0 +1,7 @@ +server { + # TODO FOR ADMIN: Config listens and SSL and server_name and whatnot + + location / { + include uwsgi_params; + uwsgi_pass unix:/var/wish/sock; +} diff --git a/conf/systemd.service b/conf/systemd.service new file mode 100644 index 0000000..14ef6d0 --- /dev/null +++ b/conf/systemd.service @@ -0,0 +1,13 @@ +[Unit] +Description=LEdoian's Wish web app +After=network-online.target + +[Service] +Type=notify +WorkingDirectory=/home/wish/install +ExecStart=/usr/bin/uwsgi --ini /home/wish/install/conf/uwsgi.ini +Restart=always +RestartSec=30 + +[Install] +WantedBy=default.target diff --git a/conf/uwsgi.ini b/conf/uwsgi.ini new file mode 100644 index 0000000..67c7172 --- /dev/null +++ b/conf/uwsgi.ini @@ -0,0 +1,14 @@ +[uwsgi] +socket = /var/wish/sock +logto = /home/wish/log +chdir = /home/wish/install + +module = wish.wsgi +plugin = python3 +virtualenv = venv +master = True +vacuum = True +chmod-socket = 666 +max-requests = 500 +die-on-term=true +