Landing page template for Metaservices based on ShariX Open with the login button for authorization and access to open-webuser.
Шаблон посадочной страницы Метасервиса на основе ShariX Open с кнопкой авторизации для перехода к open-webuser.
Nastya ff20099e57 fixed mail | há 1 ano atrás | |
---|---|---|
bin | há 1 ano atrás | |
butler | há 1 ano atrás | |
core | há 1 ano atrás | |
pages_pdf | há 1 ano atrás | |
.gitignore | há 1 ano atrás | |
README.md | há 1 ano atrás | |
dumpdb.sql | há 1 ano atrás | |
install_unix.sh | há 1 ano atrás | |
install_win.sh | há 1 ano atrás | |
license | há 2 anos atrás | |
manage.py | há 1 ano atrás | |
requirements.txt | há 1 ano atrás |
Download or clone repository
git https://git.sharix-app.org/ShariX_Open/sharix-open-landing.git
git checkout unstable
Set up a configuration file
#Create file config.py with this setting or rename this file to config.py
#BASE
DEBUG=True
SECRET_KEY='secret-key(absolutely any character)'
ALLOWED_HOSTS = ['127.0.0.1']
CSRF_TRUSTED_ORIGINS = []
#DATABSE
DB_NAME=None
DB_USER=None
DB_PASSWORD=None
DB_HOST=None
#GUNICORN
BIND = "127.0.0.1:8000"
WORKERS = 1
THREADS = 2
#STATIC
from pathlib import Path
import os
BASE_DIR = Path(__file__).resolve().parent.parent
STATIC_URL = '/static/'
STATICFILES_DIRS = [BASE_DIR / "SharixAdmin/static/", BASE_DIR / "tickets/static/"]
STATIC_ROOT = os.path.join(BASE_DIR, "staticfiles")
Run a install.sh
The system will prompt you to create a superuser
#Example
7987654321
admin
pa$$w0rd
pa$$w0rd
Set up the bin/butler.sh file with valid paths
#!/bin/bash
cd /path/to/project
exec /path/to/project/env/bin/gunicorn core.wsgi:application -c core/conf_gunicorn.py
It remains to configure Nginx conf and start the daemon