Skip to content

🔥🔥智能聚合、极速变现、专业私有、卓越升级。EasyAds Pro是倍业科技技术团队研发的一款开源聚合SDK管理项目,该项目是聚合管理平台的前端项目,采用React框架进行编写。

License

Notifications You must be signed in to change notification settings

bayescom/EasyAds-Pro_Apollo

Repository files navigation

运行环境

环境说明

本wiki只针对ubuntu(24.04 LTS)进行验证,其他系统请自行测试。

nodejs

# Download and install nvm:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
# Download and install Node.js:
nvm install 16
# Verify the Node.js version:
node -v # Should print "v16.20.2".
nvm current # Should print "v16.20.2".
# Verify npm version:
npm -v # Should print "8.19.4".

nginx(可选)

# Install the prerequisites:
sudo apt install curl gnupg2 ca-certificates lsb-release ubuntu-keyring
# Import an official nginx signing key so apt could verify the packages authenticity. Fetch the key:

curl https://nginx.org/keys/nginx_signing.key | gpg --dearmor \
    | sudo tee /usr/share/keyrings/nginx-archive-keyring.gpg >/dev/null
# Verify that the downloaded file contains the proper key:

gpg --dry-run --quiet --no-keyring --import --import-options import-show /usr/share/keyrings/nginx-archive-keyring.gpg
# The output should contain the full fingerprint 573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62 as follows:

pub   rsa2048 2011-08-19 [SC] [expires: 2027-05-24]
      573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62
uid                      nginx signing key <[email protected]>
# Note that the output can contain other keys used to sign the packages.
# To set up the apt repository for stable nginx packages, run the following command:
echo "deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] \
http://nginx.org/packages/ubuntu `lsb_release -cs` nginx" \
    | sudo tee /etc/apt/sources.list.d/nginx.list
# Set up repository pinning to prefer our packages over distribution-provided ones:
echo -e "Package: *\nPin: origin nginx.org\nPin: release o=nginx\nPin-Priority: 900\n" \
    | sudo tee /etc/apt/preferences.d/99nginx
#To install nginx, run the following commands:
sudo apt update
sudo apt install nginx

编译安装

1. 修改配置中的Luna链接

配置文件为src/config.ts,将luna更改为自己的luna服务域名

export default {
  default: {
    luna: 'http://luna.yourdomain.com/Luna'
  },
  production: {
    luna: 'http://luna.yourdomain.com/Luna',
  }
};

2. 编译部署

# 安装依赖package
npm install
# 执行构建
cd src && npm run build
# 启动
npm start 

3. nginx托管(可选)

配置参考

server { 
    listen                    80;
    # 更新为自己的域名
    server_name  apollo.yourdomain.com;
    # 编译生成的静态文件目录
    root /var/www/html/build;

    location / {
        try_files $uri $uri/ /index.html;
        if ($request_filename ~* .*\.(?:htm|html)$)
        {
            add_header Cache-Control "private, no-store, no-cache, must-revalidate, proxy-revalidate";
        }
    }

    #error_page  404              /404.html;

    # redirect server error pages to the static page /50x.html
    #
    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   /usr/share/nginx/html;
    }

}

账户密码

默认用户名密码如下,可登录后自行修改;管理员账户登录后,可创建新的用户。 admin账户为超级管理员,账户密码请妥善保管;

用户名 密码
admin admin123
manager test123
test test123

About

🔥🔥智能聚合、极速变现、专业私有、卓越升级。EasyAds Pro是倍业科技技术团队研发的一款开源聚合SDK管理项目,该项目是聚合管理平台的前端项目,采用React框架进行编写。

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Contributors 3

  •  
  •  
  •