Skip to content

This is the server side of Push Text (Chrome extension).

Notifications You must be signed in to change notification settings

wqwz111/Push-Text-Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Push-Text-Server

Push Text (Chrome extension) 的服务器端程序.

使用方法

使用Docker环境

  • 安装Docker安装方法
  • 安装Docker Compose安装方法
  • 修改server_config.env
  • 如需配置nginx将https请求反向代理给nodejs,则需要新建配置目录,并将ssl证书的.cert文件和.key文件以及nginx的代理https配置文件ssl.conf放入其中
  • 新建配置目录的方法,在终端输入:
    sudo mkdir /ssl-conf
  • 在终端执行:
    sudo docker-compose up -d
  • 访问方式:
    • 如果配置了https则使用对应域名访问
    • 如果未配置https则使用默认端口3000进行访问

手动安装环境和配置

  • 安装nodejsmongodb
  • 修改config.json:
    {
        "db": "mongodb://localhost/push_text",
        "server_port": 3000,
        "qiniu_access_key": "<your_access_key>",
        "qiniu_secret_key": "<your_secret_key>",
        "qiniu_bucket": "<your_bucket_name>"
    }
    其中<your_access_key>处填写你的七牛云对象存储的access key, <your_secret_key>处填写你的七牛云对象存储的secret key, <your_bucket_name>处填写你的七牛云对象存储的bucket名称.
  • 启动:
    node app.js
    
  • 访问方式:
    • 使用默认端口3000进行访问

About

This is the server side of Push Text (Chrome extension).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published