first commit
This commit is contained in:
9
etc/contact-form/config.ini
Normal file
9
etc/contact-form/config.ini
Normal 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
|
||||
13
etc/contact-form/contact-form.service
Normal file
13
etc/contact-form/contact-form.service
Normal 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
|
||||
5
etc/contact-form/uwsgi.ini
Normal file
5
etc/contact-form/uwsgi.ini
Normal file
@@ -0,0 +1,5 @@
|
||||
[uwsgi]
|
||||
socket = :9090
|
||||
protocol = http
|
||||
wsgi-file = /sites/contact-form/webapp.py
|
||||
plugin = python3
|
||||
Reference in New Issue
Block a user