neddit

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

commit
0899bdcaac95cd31addbf90895e317b3e405da27
parent
ba20bf1f5e424e326a8c623f399bb55e993103f7
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2022-07-21 05:31
rm deploy

Diffstat

D deploy/PKGBUILD 11 -----------
D deploy/neddit.nginx 23 -----------------------
D deploy/neddit.service 15 ---------------

3 files changed, 0 insertions, 49 deletions


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

@@ -1,11 +0,0 @@
    1    -1 pkgname='neddit'
    2    -1 pkgdesc='the frontend of the frontpage of the internet'
    3    -1 arch=('amd64')
    4    -1 url='https://github.com/xi/neddit'
    5    -1 license='MIT'
    6    -1 depends=('gunicorn' 'python3-requests' 'python3-jinja2' 'python3-flask' 'python3-gevent')
    7    -1 
    8    -1 package() {
    9    -1 	install -D -m 644 neddit.service "$pkgdir/lib/systemd/system/neddit.service"
   10    -1 	install -D -m 644 neddit.nginx "$pkgdir/etc/nginx/sites-available/neddit"
   11    -1 }

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

@@ -1,23 +0,0 @@
    1    -1 server {
    2    -1 	server_name _;
    3    -1 
    4    -1 	listen [::]:80;
    5    -1 	listen 80;
    6    -1 
    7    -1 	location / {
    8    -1 		proxy_pass http://localhost:8006;
    9    -1 	}
   10    -1 
   11    -1 	location ^~ /static/  {
   12    -1 		include /etc/nginx/mime.types;
   13    -1 		root /var/www/neddit/;
   14    -1 	}
   15    -1 
   16    -1 	location /favicon.ico  {
   17    -1 		return 404;
   18    -1 	}
   19    -1 
   20    -1 	location /robots.txt {
   21    -1 		return 200 "User-agent: *\nDisallow: /\n";
   22    -1 	}
   23    -1 }

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

@@ -1,15 +0,0 @@
    1    -1 [Unit]
    2    -1 Description=neddit
    3    -1 After=network.target
    4    -1 
    5    -1 [Service]
    6    -1 Type=simple
    7    -1 ExecStart=gunicorn3 -w 3 -k gevent neddit:app -b localhost:8006
    8    -1 Restart=always
    9    -1 WorkingDirectory=/var/www/neddit/
   10    -1 DynamicUser=true
   11    -1 ProtectSystem=full
   12    -1 ProtectHome=yes
   13    -1 
   14    -1 [Install]
   15    -1 WantedBy=multi-user.target