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