first commit

This commit is contained in:
2020-10-17 22:04:19 +02:00
parent d19659c4f8
commit d5e61053f6
10 changed files with 614 additions and 1 deletions

View File

@@ -0,0 +1,49 @@
[api]
# api configuration
# username to authenticate on the api
username = admin
# password to use on the api
password = secret
# domain where is the nexcloud instance
domain = cloud.example.com
# whether or not we should use https
use_https = yes
# should we require a valid ssl certificate ?
# note: this option is ignored if use_https if false
check_certificate = yes
# nexcloud api base uri
# the part after the domain but before the enpoint itself
# you should not need to change it
base_uri = /ocs/v1.php/cloud
[web]
# configuration for the web part and the user interaction
# path to display the form
base_uri =
# color to match the nextcloud theme
color = #0082c9
# link to the nexcloud instance landing page
instance_link = https://cloud.example.com/index.php/login
# link to the host organisation
org_link = https://example.com
# link to the favicon to use. Fo not use a small one as it is displayed
# in the form too
favicon = favicon.ico
# link to the EULA for this service
eula = https://example.com/eula
[rules]
# all business rules
# maximum account authorized on the nextcloud instance.
# 0 means unlimited
max_accounts = 50
# whether or not the user must give an email to subscribe
# at least one of email and password is mandatory
mandatory_email = yes
# whether or not the user must give an password to subscribe
# at least one of email and password is mandatory
mandatory_password = yes

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/nextcloudregister/uwsgi.ini
User=nextcloudregister
Group=nextcloudregister
[Install]
WantedBy=multi-user.target

View File

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