neddit

the frontend of the frontpage of the internet  https://neddit.ce9e.org
git clone https://git.ce9e.org/neddit.git

commit
bc586bf4b10a3490ea8bf8c95cd485dff8e17137
parent
42e8757c518e7f4612c5ad7fd2599db973722688
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2020-07-25 15:35
switch deployment method

Diffstat

R PKGBUILD -> deploy/PKGBUILD 5 -----
R neddit.nginx -> deploy/neddit.nginx 2 +-
R neddit.service -> deploy/neddit.service 2 +-

3 files changed, 2 insertions, 7 deletions


diff --git a/PKGBUILD b/deploy/PKGBUILD

@@ -6,11 +6,6 @@ license='MIT'
    6     6 depends=('gunicorn3' 'python3-requests' 'python3-jinja2' 'python3-flask')
    7     7 
    8     8 package() {
    9    -1 	mkdir -p "$pkgdir/opt/neddit/templates/"
   10    -1 	mkdir -p "$pkgdir/opt/neddit/static/"
   11    -1 	install -m 644 neddit.py "$pkgdir/opt/neddit/neddit.py"
   12    -1 	install -m 644 templates/* "$pkgdir/opt/neddit/templates/"
   13    -1 	install -m 644 static/* "$pkgdir/opt/neddit/static/"
   14     9 	install -D -m 644 neddit.service "$pkgdir/lib/systemd/system/neddit.service"
   15    10 	install -D -m 644 neddit.nginx "$pkgdir/etc/nginx/sites-available/neddit"
   16    11 }

diff --git a/neddit.nginx b/deploy/neddit.nginx

@@ -10,7 +10,7 @@ server {
   10    10 
   11    11 	location ^~ /static/  {
   12    12 		include /etc/nginx/mime.types;
   13    -1 		root /opt/neddit/;
   -1    13 		root /var/www/neddit/;
   14    14 	}
   15    15 
   16    16 	location /favicon.ico  {

diff --git a/neddit.service b/deploy/neddit.service

@@ -6,7 +6,7 @@ After=network.target
    6     6 Type=simple
    7     7 ExecStart=gunicorn3 -w 2 neddit:app -b localhost:8006
    8     8 Restart=always
    9    -1 WorkingDirectory=/opt/neddit/
   -1     9 WorkingDirectory=/var/www/neddit/
   10    10 DynamicUser=true
   11    11 ProtectSystem=full
   12    12 ProtectHome=yes