eguneraketa

This commit is contained in:
aitzol 2022-06-24 18:21:41 +02:00
parent 64ed79e43a
commit fc5b40b0f9
8 changed files with 15 additions and 12 deletions

1
.gitignore vendored
View File

@ -1,4 +1,5 @@
/settings.ini
/settings.ini.example.original
/uwsgi.ini
session
libs/__pycache__

View File

@ -5,6 +5,7 @@
[pypi-bottle]: https://pypi.python.org/pypi/bottle/
[pypi-ldap3]: https://pypi.python.org/pypi/ldap3
[settings]: https://git.lainoa.eus/aitzol/ldap-python-webui/src/branch/master/settings.ini.example
[uwsgi]: https://git.lainoa.eus/aitzol/ldap-python-webui/src/branch/master/uwsgi.ini.example
[GPL3]: https://www.gnu.org/licenses/gpl-3.0.txt
[LICENSE]: https://www.gnu.org/licenses/licenses.html
[wsgiref]: https://docs.python.org/3/library/wsgiref.html#module-wsgiref.simple_server
@ -50,7 +51,11 @@ Konfiguraketa [settings.ini][settings] fitxategian ezartzen da. Fitxategi honen
```
uwsgi --http :8080 --enable-threads --wsgi-file app.py
```
edo [uwsgi.ini][ uwsgi ] fitxategia sortu eta exekutatu:
```
uwsgi -i uwsgi.ini
```
* Berezko Bottle zerbitzariaren bidez zuzenean `app.py` exekutatuz:
```

View File

@ -14,17 +14,6 @@ search_filter = uid={uid}
#base = ou=People,dc=example,dc=org
#search_filter = uid={uid}
[uwsgi]
plugins = python3
socket = /run/uwsgi/main.sock
chdir = /var/www/scripts
logger = file:/var/log/uwsgi/main.log
processes = 1
threads = 2
# map URI paths to applications
mount = /admin/ldap-python-webui=ldap-python-webui/app.py
manage-script-name = true
[server]
server = auto
host = localhost
@ -32,7 +21,7 @@ port = 8080
[session]
type = file
expire = 300
expire = 900
data_dir = ./session
auto = true

8
uwsgi.ini.example Normal file
View File

@ -0,0 +1,8 @@
; https://uwsgi-docs.readthedocs.io/en/latest/Configuration.html#magic-variables
[uwsgi]
http = :9090
chdir = %v
wsgi-file = %v/app.py
processes = 1
threads = 2