Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

📨 Jasmin Web Panel for Jasmin SMS Gateway

NotificationsYou must be signed in to change notification settings

101t/jasmin-web-panel

Repository files navigation

travis-ci

Jasmin Web Application to manageJasmin SMS Gateway

Table Of Contents:

  1. Installing and Deployment
  2. Release Notes
  3. Tracking Issue
  4. Contact Us

Installing and Deployment

Before starting please make sure you have installed and runningJasmin SMS Gateway on your server.

Installation

Download and Extract folder We recommended installing python dependencies invirtualenv

Install dependencies:

This version usingpython >= 3.5 make sure you have installed on your system.

go tojasmin-web-panel/ and run

cd jasmin-web-panel/pip install -r requirements.txtcp Sample.env .env

Preparing yourdatabase by running migrate commads:

python manage.py migratepython manage.py load_new# to load new userpython manage.py collectstatic

These commands used in production server, also you may editJasmin SMS Gateway credential connection

TELNET_HOST = 127.0.0.1TELNET_PORT = 8990TELNET_USERNAME = jcliadminTELNET_PW = jclipwdTELNET_TIMEOUT = 10

for production make sureDEBUG=False in.env file to ensure security.You may run project manually

python manage.py runserver

Deployment withNGiNX and Systemd

Make sure you have installedgunicorn usingpip.

Navigate to/etc/systemd/system and create new service calledjasmin-web.service

[Unit]Description=Jasmin Web PanelRequires=postgresql.serviceAfter=network.target postgresql.service[Service]Type=simpleSyslogIdentifier=jasminwebpanelPermissionsStartOnly=trueUser=usernameGroup=usernameEnvironment="DJANGO_SETTINGS_MODULE=config.settings.pro"WorkingDirectory=/opt/jasmin-web-panelExecStart=/opt/jasmin-web-panel/env/bin/gunicorn --bind 127.0.0.1:8000 config.wsgi -w 3 --timeout=120 --log-level=errorStandardOutput=file:/opt/jasmin-web-panel/logs/gunicorn.logStandardError=file:/opt/jasmin-web-panel/logs/gunicorn.logStandardOutput=journal+consoleRestart=on-failure[Install]WantedBy=multi-user.target

Reload systemd

sudo systemctl daemon-reload

Now, you can do:

sudo systemctlenable jasmin-web.servicesudo systemctl start jasmin-web.service

To ensure web app running without issue:

sudo systemctl status jasmin-web.service

For NGiNX go to/etc/nginx/sites-available and create a new filejasmin_web

upstreamjasmin_web{server 127.0.0.1:8000;}server {listen80;charset utf-8;server_name example.com www.example.com;client_body_timeout500;client_header_timeout500;keepalive_timeout500500;send_timeout30;access_log /var/log/nginx/jasmin_web_access.log combined;error_log /var/log/nginx/jasmin_web_error.log;location/{proxy_pass http://jasmin_web;proxy_http_version1.1;proxy_read_timeout86400;proxy_redirect off;proxy_set_header Upgrade$http_upgrade;proxy_set_header Connection"upgrade";proxy_set_header Host$host;proxy_set_header X-Real-IP$remote_addr;proxy_set_header X-Forwarded-For$proxy_add_x_forwarded_for;proxy_set_header X-Forwarded-Proto$scheme;proxy_set_header X-Forwarded-Host$server_name;proxy_max_temp_file_size1600m;proxy_buffering off;proxy_request_buffering on;client_max_body_size20M;client_body_buffer_size256K;    }location ^~/media/{root /opt/jasmin-web-panel/public/;add_header Accept-Ranges bytes;    }location ^~/static/{root /opt/jasmin-web-panel/public/;add_header Pragma public;add_header Cache-Control"public";expires30d;    }}

Note: Don't forget to replaceexample.com with your real domain

Once you are done, test and restart the Nginx Service with:

ln -s /etc/nginx/sites-available/jasmin_web /etc/nginx/sites-enabled/jasmin_websudo nginx -tsudo nginx -s reload# or sudo service nginx restart# or sudo systemctl restart nginx

Login information:

Username: adminPassword: secret

Note: Please change the password to avoid the security issue

Deployment using Docker

You could download the built image ondocker hub:

docker pull tarekaec/jasmin_web_panel

also, you could build it on your local machine by navigating to the project directory

docker build -f config/docker/slim/Dockerfile -t jasmin_web_panel:1.0.

You need to configure the environment variable in.env file

DJANGO_SETTINGS_MODULE=config.settings.proPRODB_URL=postgres://username:strong_password@postgre_hostname:5432/jasmin_web_dbSYSCTL_HEALTH_CHECK=False# this option is not useful on docker

to start docker container

docker stack deploy -c docker-compose.yml jasmin1

you could check service on terminal

docker service ls| grep jasmin

Submit Log

To work with Submit Log you need to install and configureSubmit Log service, make sure you haveSUBMIT_LOG (defaultFalse) in environment variable:

SUBMIT_LOG=True

Release Notes

What's new in version 2.0.0

  1. UI Improved, jQuery Fixed, jQuery Validation added.
  2. Backend fixing, upgrade to python3 and fresh Django version.
  3. Telnet connector fixing.
  4. Deployment made easier.
  5. Fixing common connection issues.
  6. Simple dashboard initialized.
  7. User Profile, Change Password, Add Avatar.
  8. Activity Log, to log your usage.

What's new in version 2.0.1

  1. AddingSubmit Log report (DLR report)

What's new in version 2.0.2

  1. Adding FailOverRouter supports to MT / MO Router

Tracking Issue

You may submit issuehere

Contacts

For question and suggestion:tarek.it.eng@gmail.com, Join Telegram Channel:https://t.me/jasminwebpanel, all suggestion and questions are welcomed.


[8]ページ先頭

©2009-2025 Movatter.jp