feat: first commit for public repository
This commit is contained in:
commit
f28546e748
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
# created by virtualenv automatically
|
||||
bin/
|
||||
include/
|
||||
lib/
|
36
comments.nunosempere.com
Normal file
36
comments.nunosempere.com
Normal file
|
@ -0,0 +1,36 @@
|
|||
server {
|
||||
|
||||
# root /var/www/comments.nunosempere.com/html;
|
||||
# index index.html index.htm index.nginx-debian.html;
|
||||
|
||||
server_name comments.nunosempere.com;
|
||||
# www.comments.nunosempere.com;
|
||||
|
||||
location / {
|
||||
# try_files $uri $uri/ =404;
|
||||
proxy_pass http://localhost:8081;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
|
||||
listen [::]:443 ssl; # managed by Certbot
|
||||
listen 443 ssl; # managed by Certbot
|
||||
ssl_certificate /etc/letsencrypt/live/comments.nunosempere.com/fullchain.pem; # managed by Certbot
|
||||
ssl_certificate_key /etc/letsencrypt/live/comments.nunosempere.com/privkey.pem; # managed by Certbot
|
||||
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
|
||||
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
|
||||
|
||||
|
||||
}
|
||||
server {
|
||||
if ($host = comments.nunosempere.com) {
|
||||
return 301 https://$host$request_uri;
|
||||
} # managed by Certbot
|
||||
|
||||
server_name comments.nunosempere.com;
|
||||
listen 80;
|
||||
return 404; # managed by Certbot
|
||||
|
||||
}
|
10
isso-start.sh
Executable file
10
isso-start.sh
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
# taken from <https://blog.phusion.nl/2018/08/16/isso-simple-self-hosted-commenting-system/>
|
||||
|
||||
set -e
|
||||
cd /etc/isso
|
||||
source /etc/isso/bin/activate
|
||||
## export LANG=C.UTF-8
|
||||
export ISSO_SETTINGS="/etc/isso/isso.cfg"
|
||||
## exec gunicorn -n gunicorn-isso -b 127.0.0.1:1927 --preload -w 4 --log-file /var/log/isso/isso.log isso.dispatch 2>>/var/log/isso/isso.log
|
||||
gunicorn -b localhost:8081 --preload -w 4 --log-file /etc/isso/isso.log isso.run 2>> /etc/isso/isso.log ## known to work
|
33
isso.cfg
Normal file
33
isso.cfg
Normal file
|
@ -0,0 +1,33 @@
|
|||
[general]
|
||||
; database location, check permissions, automatically created if it
|
||||
; does not exist
|
||||
dbpath = /etc/isso/comments.db
|
||||
; your website or blog (not the location of Isso!)
|
||||
host = https://nunosempere.com
|
||||
name = nunosempereblog
|
||||
|
||||
[server]
|
||||
listen = http://localhost:8081
|
||||
|
||||
; fill-in or delete.
|
||||
[smtp]
|
||||
username = ; fill-in
|
||||
password = ; fill-in
|
||||
host = smtp.postmarkapp.com ; or some other service. Not really necessary
|
||||
port = 587
|
||||
security = starttls
|
||||
to = ; fill in email.
|
||||
from = ; fill in email
|
||||
timeout = 10
|
||||
|
||||
[guard]
|
||||
enabled = true
|
||||
ratelimit = 2
|
||||
direct-reply = 3
|
||||
reply-to-self = false
|
||||
require-author = false
|
||||
require-email = false
|
||||
|
||||
[admin]
|
||||
enabled = true
|
||||
password = ; fill in password
|
154
isso.log
Normal file
154
isso.log
Normal file
|
@ -0,0 +1,154 @@
|
|||
[2022-10-29 14:55:05 +0000] [25252] [INFO] Starting gunicorn 20.1.0
|
||||
[2022-10-29 14:55:05 +0000] [25252] [INFO] Listening at: http://127.0.0.1:8000 (25252)
|
||||
[2022-10-29 14:55:05 +0000] [25252] [INFO] Using worker: sync
|
||||
[2022-10-29 14:55:05 +0000] [25253] [INFO] Booting worker with pid: 25253
|
||||
[2022-10-29 14:56:43 +0000] [25252] [INFO] Handling signal: term
|
||||
[2022-10-29 14:56:43 +0000] [25253] [INFO] Worker exiting (pid: 25253)
|
||||
[2022-10-29 14:56:43 +0000] [25252] [WARNING] Worker with pid 25253 was terminated due to signal 15
|
||||
[2022-10-29 14:56:43 +0000] [25252] [INFO] Shutting down: Master
|
||||
[2022-10-29 14:58:44 +0000] [25452] [INFO] Starting gunicorn 20.1.0
|
||||
[2022-10-29 14:58:44 +0000] [25452] [INFO] Listening at: http://127.0.0.1:8081 (25452)
|
||||
[2022-10-29 14:58:44 +0000] [25452] [INFO] Using worker: sync
|
||||
[2022-10-29 14:58:44 +0000] [25453] [INFO] Booting worker with pid: 25453
|
||||
[2022-10-29 14:59:21 +0000] [25452] [INFO] Handling signal: term
|
||||
[2022-10-29 14:59:21 +0000] [25453] [INFO] Worker exiting (pid: 25453)
|
||||
[2022-10-29 14:59:21 +0000] [25452] [WARNING] Worker with pid 25453 was terminated due to signal 15
|
||||
[2022-10-29 14:59:21 +0000] [25452] [INFO] Shutting down: Master
|
||||
[2022-10-29 14:59:27 +0000] [25484] [INFO] Starting gunicorn 20.1.0
|
||||
[2022-10-29 14:59:27 +0000] [25484] [INFO] Listening at: http://127.0.0.1:8081 (25484)
|
||||
[2022-10-29 14:59:27 +0000] [25484] [INFO] Using worker: sync
|
||||
[2022-10-29 14:59:27 +0000] [25485] [INFO] Booting worker with pid: 25485
|
||||
[2022-10-29 14:59:58 +0000] [25521] [INFO] Starting gunicorn 20.1.0
|
||||
[2022-10-29 14:59:58 +0000] [25521] [ERROR] Connection in use: ('localhost', 8081)
|
||||
[2022-10-29 14:59:58 +0000] [25521] [ERROR] Retrying in 1 second.
|
||||
[2022-10-29 14:59:59 +0000] [25521] [ERROR] Connection in use: ('localhost', 8081)
|
||||
[2022-10-29 14:59:59 +0000] [25521] [ERROR] Retrying in 1 second.
|
||||
[2022-10-29 15:00:00 +0000] [25521] [ERROR] Connection in use: ('localhost', 8081)
|
||||
[2022-10-29 15:00:00 +0000] [25521] [ERROR] Retrying in 1 second.
|
||||
[2022-10-29 15:00:01 +0000] [25521] [ERROR] Connection in use: ('localhost', 8081)
|
||||
[2022-10-29 15:00:01 +0000] [25521] [ERROR] Retrying in 1 second.
|
||||
[2022-10-29 15:00:02 +0000] [25521] [ERROR] Connection in use: ('localhost', 8081)
|
||||
[2022-10-29 15:00:02 +0000] [25521] [ERROR] Retrying in 1 second.
|
||||
[2022-10-29 15:00:03 +0000] [25521] [ERROR] Can't connect to ('localhost', 8081)
|
||||
[2022-10-29 15:01:40 +0000] [25484] [INFO] Handling signal: term
|
||||
[2022-10-29 15:01:40 +0000] [25485] [INFO] Worker exiting (pid: 25485)
|
||||
[2022-10-29 15:01:40 +0000] [25484] [WARNING] Worker with pid 25485 was terminated due to signal 15
|
||||
[2022-10-29 15:01:40 +0000] [25484] [INFO] Shutting down: Master
|
||||
[2022-10-29 22:00:15 +0000] [34539] [INFO] Starting gunicorn 20.1.0
|
||||
[2022-10-29 22:00:15 +0000] [34539] [INFO] Listening at: http://127.0.0.1:8081 (34539)
|
||||
[2022-10-29 22:00:15 +0000] [34539] [INFO] Using worker: sync
|
||||
[2022-10-29 22:00:15 +0000] [34540] [INFO] Booting worker with pid: 34540
|
||||
[2022-10-29 22:00:15 +0000] [34541] [INFO] Booting worker with pid: 34541
|
||||
[2022-10-29 22:00:15 +0000] [34542] [INFO] Booting worker with pid: 34542
|
||||
[2022-10-29 22:00:15 +0000] [34543] [INFO] Booting worker with pid: 34543
|
||||
[2022-10-29 22:00:45 +0000] [34539] [INFO] Handling signal: int
|
||||
[2022-10-29 22:00:46 +0000] [34542] [INFO] Worker exiting (pid: 34542)
|
||||
[2022-10-29 22:00:46 +0000] [34541] [INFO] Worker exiting (pid: 34541)
|
||||
[2022-10-29 22:00:46 +0000] [34540] [INFO] Worker exiting (pid: 34540)
|
||||
[2022-10-29 22:00:46 +0000] [34543] [INFO] Worker exiting (pid: 34543)
|
||||
[2022-10-29 22:00:46 +0000] [34539] [INFO] Shutting down: Master
|
||||
[2022-10-29 22:03:08 +0000] [34596] [INFO] Starting gunicorn 20.1.0
|
||||
[2022-10-29 22:03:08 +0000] [34596] [INFO] Listening at: http://127.0.0.1:8081 (34596)
|
||||
[2022-10-29 22:03:08 +0000] [34596] [INFO] Using worker: sync
|
||||
[2022-10-29 22:03:08 +0000] [34598] [INFO] Booting worker with pid: 34598
|
||||
[2022-10-29 22:03:08 +0000] [34599] [INFO] Booting worker with pid: 34599
|
||||
[2022-10-29 22:03:08 +0000] [34600] [INFO] Booting worker with pid: 34600
|
||||
[2022-10-29 22:03:08 +0000] [34601] [INFO] Booting worker with pid: 34601
|
||||
[2022-10-29 22:03:22 +0000] [34596] [INFO] Handling signal: int
|
||||
[2022-10-29 22:03:22 +0000] [34598] [INFO] Worker exiting (pid: 34598)
|
||||
[2022-10-29 22:03:22 +0000] [34599] [INFO] Worker exiting (pid: 34599)
|
||||
[2022-10-29 22:03:22 +0000] [34600] [INFO] Worker exiting (pid: 34600)
|
||||
[2022-10-29 22:03:22 +0000] [34601] [INFO] Worker exiting (pid: 34601)
|
||||
[2022-10-29 22:03:22 +0000] [34596] [INFO] Shutting down: Master
|
||||
[2022-10-29 22:03:27 +0000] [34613] [INFO] Starting gunicorn 20.1.0
|
||||
[2022-10-29 22:03:27 +0000] [34613] [INFO] Listening at: http://127.0.0.1:8081 (34613)
|
||||
[2022-10-29 22:03:27 +0000] [34613] [INFO] Using worker: sync
|
||||
[2022-10-29 22:03:27 +0000] [34616] [INFO] Booting worker with pid: 34616
|
||||
[2022-10-29 22:03:27 +0000] [34617] [INFO] Booting worker with pid: 34617
|
||||
[2022-10-29 22:03:28 +0000] [34618] [INFO] Booting worker with pid: 34618
|
||||
[2022-10-29 22:03:28 +0000] [34619] [INFO] Booting worker with pid: 34619
|
||||
[2022-10-29 22:04:12 +0000] [34613] [INFO] Handling signal: int
|
||||
[2022-10-29 22:04:12 +0000] [34617] [INFO] Worker exiting (pid: 34617)
|
||||
[2022-10-29 22:04:12 +0000] [34618] [INFO] Worker exiting (pid: 34618)
|
||||
[2022-10-29 22:04:12 +0000] [34616] [INFO] Worker exiting (pid: 34616)
|
||||
[2022-10-29 22:04:12 +0000] [34619] [INFO] Worker exiting (pid: 34619)
|
||||
[2022-10-29 22:04:12 +0000] [34613] [INFO] Shutting down: Master
|
||||
[2022-10-29 22:04:20 +0000] [34623] [INFO] Starting gunicorn 20.1.0
|
||||
[2022-10-29 22:04:20 +0000] [34623] [INFO] Listening at: http://127.0.0.1:8000 (34623)
|
||||
[2022-10-29 22:04:20 +0000] [34623] [INFO] Using worker: sync
|
||||
[2022-10-29 22:04:20 +0000] [34624] [INFO] Booting worker with pid: 34624
|
||||
[2022-10-29 22:04:26 +0000] [34623] [INFO] Handling signal: int
|
||||
[2022-10-29 22:04:26 +0000] [34623] [INFO] Shutting down: Master
|
||||
[2022-10-29 22:04:28 +0000] [34627] [INFO] Starting gunicorn 20.1.0
|
||||
[2022-10-29 22:04:28 +0000] [34627] [INFO] Listening at: http://127.0.0.1:8081 (34627)
|
||||
[2022-10-29 22:04:28 +0000] [34627] [INFO] Using worker: sync
|
||||
[2022-10-29 22:04:28 +0000] [34628] [INFO] Booting worker with pid: 34628
|
||||
[2022-10-29 22:04:28 +0000] [34629] [INFO] Booting worker with pid: 34629
|
||||
[2022-10-29 22:04:28 +0000] [34630] [INFO] Booting worker with pid: 34630
|
||||
[2022-10-29 22:04:28 +0000] [34631] [INFO] Booting worker with pid: 34631
|
||||
[2022-10-29 22:04:51 +0000] [34627] [INFO] Handling signal: int
|
||||
[2022-10-29 22:04:52 +0000] [34629] [INFO] Worker exiting (pid: 34629)
|
||||
[2022-10-29 22:04:52 +0000] [34628] [INFO] Worker exiting (pid: 34628)
|
||||
[2022-10-29 22:04:52 +0000] [34630] [INFO] Worker exiting (pid: 34630)
|
||||
[2022-10-29 22:04:52 +0000] [34631] [INFO] Worker exiting (pid: 34631)
|
||||
[2022-10-29 22:04:52 +0000] [34627] [INFO] Shutting down: Master
|
||||
[2022-10-29 22:05:13 +0000] [34646] [INFO] Starting gunicorn 20.1.0
|
||||
[2022-10-29 22:05:13 +0000] [34646] [INFO] Listening at: http://127.0.0.1:8081 (34646)
|
||||
[2022-10-29 22:05:13 +0000] [34646] [INFO] Using worker: sync
|
||||
[2022-10-29 22:05:13 +0000] [34647] [INFO] Booting worker with pid: 34647
|
||||
[2022-10-29 22:05:13 +0000] [34648] [INFO] Booting worker with pid: 34648
|
||||
[2022-10-29 22:05:13 +0000] [34649] [INFO] Booting worker with pid: 34649
|
||||
[2022-10-29 22:05:13 +0000] [34650] [INFO] Booting worker with pid: 34650
|
||||
[2022-10-29 22:19:52 +0000] [34646] [INFO] Handling signal: int
|
||||
[2022-10-29 22:19:52 +0000] [34647] [INFO] Worker exiting (pid: 34647)
|
||||
[2022-10-29 22:19:52 +0000] [34648] [INFO] Worker exiting (pid: 34648)
|
||||
[2022-10-29 22:19:52 +0000] [34650] [INFO] Worker exiting (pid: 34650)
|
||||
[2022-10-29 22:19:52 +0000] [34649] [INFO] Worker exiting (pid: 34649)
|
||||
[2022-10-29 22:19:53 +0000] [34646] [INFO] Shutting down: Master
|
||||
2022-10-29 22:20:22,600 INFO: Using database at '/etc/isso/comments.db'
|
||||
2022-10-29 22:20:22,739 INFO: connected to https://nunosempere.com
|
||||
[2022-10-29 22:20:22 +0000] [35162] [INFO] Starting gunicorn 20.1.0
|
||||
[2022-10-29 22:20:22 +0000] [35162] [INFO] Listening at: http://127.0.0.1:8081 (35162)
|
||||
[2022-10-29 22:20:22 +0000] [35162] [INFO] Using worker: sync
|
||||
[2022-10-29 22:20:22 +0000] [35163] [INFO] Booting worker with pid: 35163
|
||||
[2022-10-29 22:20:22 +0000] [35164] [INFO] Booting worker with pid: 35164
|
||||
[2022-10-29 22:20:22 +0000] [35165] [INFO] Booting worker with pid: 35165
|
||||
[2022-10-29 22:20:22 +0000] [35166] [INFO] Booting worker with pid: 35166
|
||||
[2022-10-29 22:20:24 +0000] [35162] [INFO] Handling signal: winch
|
||||
[2022-10-29 22:20:36 +0000] [35162] [INFO] Handling signal: int
|
||||
[2022-10-29 22:20:36 +0000] [35165] [INFO] Worker exiting (pid: 35165)
|
||||
[2022-10-29 22:20:36 +0000] [35164] [INFO] Worker exiting (pid: 35164)
|
||||
[2022-10-29 22:20:36 +0000] [35166] [INFO] Worker exiting (pid: 35166)
|
||||
[2022-10-29 22:20:37 +0000] [35162] [INFO] Shutting down: Master
|
||||
2022-10-29 22:20:55,918 INFO: Using database at '/etc/isso/comments.db'
|
||||
2022-10-29 22:20:56,045 INFO: connected to https://nunosempere.com
|
||||
[2022-10-29 22:20:56 +0000] [35217] [INFO] Starting gunicorn 20.1.0
|
||||
[2022-10-29 22:20:56 +0000] [35217] [INFO] Listening at: http://127.0.0.1:8081 (35217)
|
||||
[2022-10-29 22:20:56 +0000] [35217] [INFO] Using worker: sync
|
||||
[2022-10-29 22:20:56 +0000] [35218] [INFO] Booting worker with pid: 35218
|
||||
[2022-10-29 22:20:56 +0000] [35219] [INFO] Booting worker with pid: 35219
|
||||
[2022-10-29 22:20:56 +0000] [35220] [INFO] Booting worker with pid: 35220
|
||||
[2022-10-29 22:20:56 +0000] [35221] [INFO] Booting worker with pid: 35221
|
||||
[2022-10-29 22:22:42 +0000] [35218] [INFO] Worker exiting (pid: 35218)
|
||||
[2022-10-29 22:22:42 +0000] [35220] [INFO] Worker exiting (pid: 35220)
|
||||
[2022-10-29 22:22:42 +0000] [35221] [INFO] Worker exiting (pid: 35221)
|
||||
[2022-10-29 22:22:42 +0000] [35219] [INFO] Worker exiting (pid: 35219)
|
||||
[2022-10-29 22:22:42 +0000] [35217] [WARNING] Worker with pid 35218 was terminated due to signal 15
|
||||
[2022-10-29 22:22:42 +0000] [35217] [WARNING] Worker with pid 35220 was terminated due to signal 15
|
||||
[2022-10-29 22:22:42 +0000] [35304] [INFO] Booting worker with pid: 35304
|
||||
[2022-10-29 22:22:42 +0000] [35329] [INFO] Booting worker with pid: 35329
|
||||
[2022-10-29 22:22:42 +0000] [35217] [INFO] Handling signal: term
|
||||
[2022-10-29 22:22:42 +0000] [35304] [INFO] Worker exiting (pid: 35304)
|
||||
[2022-10-29 22:22:42 +0000] [35329] [INFO] Worker exiting (pid: 35329)
|
||||
[2022-10-29 22:22:42 +0000] [35217] [WARNING] Worker with pid 35219 was terminated due to signal 15
|
||||
[2022-10-29 22:22:42 +0000] [35217] [WARNING] Worker with pid 35221 was terminated due to signal 15
|
||||
[2022-10-29 22:22:42 +0000] [35217] [INFO] Shutting down: Master
|
||||
2022-10-29 22:23:18,953 INFO: Using database at '/etc/isso/comments.db'
|
||||
2022-10-29 22:23:19,120 INFO: connected to https://nunosempere.com
|
||||
[2022-10-29 22:23:19 +0000] [1003] [INFO] Starting gunicorn 20.1.0
|
||||
[2022-10-29 22:23:19 +0000] [1003] [INFO] Listening at: http://127.0.0.1:8081 (1003)
|
||||
[2022-10-29 22:23:19 +0000] [1003] [INFO] Using worker: sync
|
||||
[2022-10-29 22:23:19 +0000] [1025] [INFO] Booting worker with pid: 1025
|
||||
[2022-10-29 22:23:19 +0000] [1026] [INFO] Booting worker with pid: 1026
|
||||
[2022-10-29 22:23:19 +0000] [1027] [INFO] Booting worker with pid: 1027
|
||||
[2022-10-29 22:23:19 +0000] [1028] [INFO] Booting worker with pid: 1028
|
27
isso.service
Normal file
27
isso.service
Normal file
|
@ -0,0 +1,27 @@
|
|||
|
||||
[Unit]
|
||||
Description=isso commenting system
|
||||
After=system.slice multi-user.target postgresql.service
|
||||
|
||||
[Service]
|
||||
ExecStart=/etc/isso/isso-start.sh
|
||||
|
||||
Restart=on-failure
|
||||
TimeoutSec=1
|
||||
User=git
|
||||
|
||||
LimitNOFILE=16384
|
||||
LimitNPROC=16384
|
||||
LimitLOCKS=16384
|
||||
|
||||
# ensures that the service process and all its children can
|
||||
never gain new
|
||||
# privileges.
|
||||
NoNewPrivileges=true
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
## taken from: <https://blog.phusion.nl/2018/08/16/isso-sim
|
||||
ple-self-hosted-commenting-system/>
|
||||
|
8
pyvenv.cfg
Normal file
8
pyvenv.cfg
Normal file
|
@ -0,0 +1,8 @@
|
|||
home = /usr
|
||||
implementation = CPython
|
||||
version_info = 3.10.6.final.0
|
||||
virtualenv = 20.13.0+ds
|
||||
include-system-site-packages = false
|
||||
base-prefix = /usr
|
||||
base-exec-prefix = /usr
|
||||
base-executable = /usr/bin/python3
|
Loading…
Reference in New Issue
Block a user