Landing page template for Metaservices based on ShariX Open with the login button for authorization and access to open-webuser.

Шаблон посадочной страницы Метасервиса на основе ShariX Open с кнопкой авторизации для перехода к open-webuser.

Maria-Ivz 6d49a66f58 Загрузить файлы '' 1 anno fa
bin 69a0373089 first commit 1 anno fa
butler ff20099e57 fixed mail 1 anno fa
core b55f908b06 fixed bugs 1 anno fa
pages_pdf 69a0373089 first commit 1 anno fa
.gitignore 69a0373089 first commit 1 anno fa
README.md b55f908b06 fixed bugs 1 anno fa
dumpdb.sql 69a0373089 first commit 1 anno fa
install_unix.sh 9e48b13b23 Added script 1 anno fa
install_win.sh b55f908b06 fixed bugs 1 anno fa
license a39efbf2a4 license info added 2 anni fa
license ru.md 6d49a66f58 Загрузить файлы '' 1 anno fa
manage.py 69a0373089 first commit 1 anno fa
requirements.txt 69a0373089 first commit 1 anno fa

README.md

ShariX Open Landing Template

How install?

  1. Download or clone repository

    git https://git.sharix-app.org/ShariX_Open/sharix-open-landing.git
    git checkout unstable
    
  2. 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")
    
  3. Run a install_unix.sh if you have Linux or if you have Windows run a install_win.sh

  4. The system will prompt you to create a superuser

    #Example
    7987654321
    admin
    pa$$w0rd
    pa$$w0rd
    
  5. Start test the server:

    python manage.py runserver 8000
    
  6. 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
    
  7. It remains to configure Nginx conf and start the daemon