Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

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
Appearance settings

📨 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.11 make sure you have installed on your system.

go tojasmin-web-panel/ and run

cd jasmin-web-panel/pip install --upgrade pip wheel uvuv pip install -r pyproject.toml --extra=prodcp sample.env .env

Preparing yourdatabase by running migrate commads:

python manage.py migratepython manage.py samplespython manage.py collectstatic --no-input

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=infoStandardOutput=file:/opt/jasmin-web-panel/logs/gunicorn.logStandardError=file:/opt/jasmin-web-panel/logs/gunicorn_error.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 sms.example.com;server_name _;# for IP Address accessclient_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 replacesms.example.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# please change the default 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:latest.

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_db

to start docker container

docker stack deploy -c docker-compose.yml jasmin1

you could check service on terminal

docker service ls| grep jasmin

Deployment using Docker Compose (Works with AArch64 or ARM64)

You need to configure the environment variable in.env fileYou also need to comment line 38 of "config/docker/slim/Dockerfile" (ENV LD_PRELOAD /usr/lib/x86_64-linux-gnu/libjemalloc.so.2)Then start docker container in detach mode. You can remove "-d" if you want to see logs

docker compose up -d

Then check docker containers

docker ps

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

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