You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 13, 2022. It is now read-only.
Yi Xia Bu Zou Neng Wan Zheng Bu Shu DCRM Zui Xin Fu Ben , Qi Yong Liao Ren Wu Dui Lie Ji Ye Mian Huan Cun Zhi Chi , Ni Ke Yi Gen Ju Xu Yao Diao Zheng Zi Ji De Pei Zhi .
Ru Guo Ni Huan Mei You Xia Zai Ci Xiang Mu , Jian Yi Shi Yong git Ke Long Gai Cang Ku :
# download this project or clone this git repo: git clone --depth 1 https://github.com/82Flex/DCRM.git && cd DCRM
Gou Jian Bing Qi Dong DCRM Rong Qi :
# build and launch DCRM via `docker-compose` docker-compose up --build --detach
# create super user in database python manage.py createsuperuser
access admin panel via http://127.0.0.1/admin/, you can upload packages via HTTP or FTP:
Xian Zai Ke Yi Chang Shi Fang Wen DCRM Hou Tai Liao , Ni Ke Yi Tong Guo HTTP Huo FTP Fang Shi Shang Chuan Ruan Jian Bao :
Default FTP username: dcrm
Default FTP password: dcrm_ftp_password
3.1. Docker Commands Chang Yong Ming Ling
Zhong Xin Gou Jian Bing Zai Hou Tai Qi Dong DCRM (Jin Dang Dai Ma Fa Sheng Bian Dong , Bu Hui Ying Xiang Shu Ju )
# build and launch DCRM in background (when source code changed) docker-compose up --build --detach
Jin Zai Hou Tai Qi Dong DCRM
# launch DCRM in background docker-compose up --detach
Zai Qian Tai Qi Dong DCRM
# launch DCRM in foreground to see what happens docker-compose up
# 2. generate new GPG key gpg --gen-key --homedir .gnupg # or # gpg --allow-secret-key-import --import private.key --homedir .gnupg
# 3. enable GPG feature and configure passphrase in `WEIPDCRM -> Settings -> Security` # 4. create APT verification package in `WEIPDCRM -> Sections -> Action -> Generate icon package for selected sections`, which will install GPG public key to user's device
4. PUBLISH REPOSITORY Fa Bu Ruan Jian Yuan
Before you publish your repository, there are a few steps you should follow:
Bu Shu Wan Cheng Hou , Ni Huan Xu Yao Yi Xie Bu Zou Lai Fa Bu Ni De Ruan Jian Yuan :
Sites
Set domains and site names.
Zai Sites Zhong She Zhi Yu Ming He Zhan Dian Ming Cheng
WEIPDCRM -> Settings
WEIPDCRM -> Releases
Add a new release and set it as an active release.
Tian Jia Xin De Release Bing Jiang Qi She Zhi Wei Huo Yue Zhuang Tai
WEIPDCRM -> Sections
WEIPDCRM -> Upload -> New Package
Upload your debian package via HTTP or FTP.
Shang Chuan Ni De deb Bao
WEIPDCRM -> Versions
Enable package versions and assign them into sections.
Ji De Qi Yong Ni De deb Bao (Mo Ren Bu Qi Yong ), Bing Qie Jiang Ta Men Fen Pei Dao Yuan Fen Lei Dang Zhong
WEIPDCRM -> Builds
Build the repository to apply all the changes, thus you cannot add this repo in Cydia.
Gou Jian Quan Yuan , Rang Suo You Geng Gai Sheng Xiao (Di Yi Ci Gou Jian Qian , Cydia Zhong Shi Wu Fa Tian Jia Gai Yuan De )
5. MANUALLY DEPLOY Shou Dong Bu Shu
5.1. ENVIRONMENT Huan Jing
gzip, bzip2, xz (xz-devel)
Python 3.7 (CentOS: if compiled from source, make sure package xz-devel is installed)
access admin panel via http://127.0.0.1:8000/admin/
5.3. IN PRODUCTION Sheng Chan Huan Jing Shi Li
Sheng Chan Huan Jing De Pei Zhi Xu Yao You Yi Ding De Fu Wu Qi Yun Wei Jing Yan , Ru Guo Ni Zai Sheng Chan Huan Jing De Pei Zhi Guo Cheng Zhong Yu Dao Kun Nan , Wo Men Ti Gong Fu Fei De Yi Nan Jie Da .
We assumed that nginx uses www-data as its user and group.
Jia She nginx Shi Yong www-data Yong Zuo Qi Yong Hu Ming He Yong Hu Zu Ming .
here is an example of nginx https site configuration file:
upstream django { server127.0.0.1:8001; # to match your uwsgi configuration } server{ listen80; server_name apt.82flex.com; # your domain rewrite ^/(.*)$ https://apt.82flex.com/$1 permanent; # redirect to https } server{ listen443ssl;
ssl_certificate /wwwdata/ssl/1_apt.82flex.com_bundle.crt; # your ssl cert ssl_certificate_key /wwwdata/ssl/2_apt.82flex.com.key; # your ssl key ssl_session_timeout5m; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers"EECDH+CHACHA20:EECDH+CHACHA20-draft:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5"; ssl_prefer_server_ciphers on;
server_name apt.82flex.com; # your domain root /wwwdata/wwwroot; # specify a web root, not the DCRM directory error_page497 https://$host$uri?$args; server_name_in_redirect off; indexindex.html;
location = / { # only enable this section if you want to use DCRM as your home page rewrite ^ /index/ last; }
location / { # only enable this section if you want to use DCRM as your default pages try_files$uri$uri/ @djangosite; }
location~^/static/(.*)$ { # static files for DCRM, you can change its path in settings.py alias /wwwdata/DCRM/static/$1; # make an aliasfor static files }
location~^/resources/(.*)$ { # resources for DCRM, including debian packages and icons, you can change it in WEIPDCRM > Settings in admin panel alias /wwwdata/DCRM/resources/$1; # make an aliasfor resources
# Aliyun CDN/OSS: # you can mount '/wwwdata/DCRM/resources' to oss file system # then rewrite this path to oss/cdn url for a better performance }
location~^/((CydiaIcon.png)|(Release(.gpg)?)|(Packages(.gz|.bz2)?))$ { # Cydia meta resources, including Release, Release.gpg, Packages and CydiaIcon
# Note: # 'releases/(\d)+/$1' should contain `active_release.id`, which is set in Settings tab. alias /wwwdata/DCRM/resources/releases/1/$1; # make an aliasfor Cydia meta resources }
location @djangosite { uwsgi_pass django; include /etc/nginx/uwsgi_params; }
# launch nginx if it is down sudo /etc/init.d/nginx start
5.3.5. Configure Workers
# launch task queue with the same nginx working user (www/www-data) su www-data
# if you cannot switch to user `www-data`, remember to change its login prompt in `/etc/passwd`. launch some workers for DCRM background queue nohup ./manage.py rqworker high > /dev/null & nohup ./manage.py rqworker default > /dev/null &
# you need at least one worker for each queue
worker De Shu Liang Yi Ni De Ju Ti Xu Qiu Wei Zhun , Dan Shi Ge Dui Lie Zhong Zhi Shao Yao You Yi Ge Huo Yue worker, Fou Ze Dui Lie Zhong De Ren Wu Jiang Yi Zhi Bao Chi Gua Qi .
5.3.6. Configure GnuPG
# 1. install `gnupg2` apt-get install gnupg2
# 2. make sure to launch background queue with the same nginx working user (www/www-data) su www-data
# 3. generate new GPG key gpg --gen-key --homedir .gnupg # or # gpg --allow-secret-key-import --import private.key --homedir .gnupg
# 4. enable GPG feature and configure passphrase in `WEIPDCRM -> Settings -> Security` # 5. create APT verification package in `WEIPDCRM -> Sections -> Action -> Generate icon package for selected sections`, which will install GPG public key to user's device
As long as you do not use the DCRM in a business or money-making venture, it is free for your own personal use. If you use DCRM in commercial projects (e.g. hosting commercial packages), please consider buy a commercial license.
PayPal receipt is valid proof of purchase of DCRM licence.
SINGLE: Use DCRM in one commercial project
UNLIMITED: Use DCRM in unlimited commercial projects
Copyright (c) 2013-2020 Lessica, Hintay, 0xJacky and all DCRM contributors
The program is distributed under the terms of the GNU Affero General Public License.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see http://www.gnu.org/licenses/.
About
Darwin Cydia Repo Manager - v4 redesigned in Django.