first commit

This commit is contained in:
Meewan
2024-08-16 15:40:49 +02:00
parent ca7ca9af36
commit 4988092706
9 changed files with 221 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
[app]
path = /dyn/contact
db_path = /tmp/contact-form.db
# time to keep the captacha valid in seconds
captcha_timout = 3600
[email]
reciever = email@example.com
server = localhost

View File

@@ -0,0 +1,13 @@
[Unit]
Description=Nextcloudregister a service to register in nextcloud
After=local-fs.target
Wants=network-online.target
[Service]
Environment=PYTHONPATH=/usr/lib/python3/dist-packages/:/sites/
ExecStart=/usr/bin/uwsgi-core --ini /etc/contact-form/uwsgi.ini
User=contactform
Group=contactform
[Install]
WantedBy=multi-user.target

View File

@@ -0,0 +1,5 @@
[uwsgi]
socket = :9090
protocol = http
wsgi-file = /sites/contact-form/webapp.py
plugin = python3