zoukankan      html  css  js  c++  java
  • aliyun install Discourse log

    apt update

    apt install wget

    wget -qO- https://get.docker.com/ | sh

    vim /etc/default/docker

    DOCKER_OPTS="--registry-mirror=http://aad0405c.m.daocloud.io"

    service docker restart

    mkdir /var/discourse
    git clone https://github.com/discourse/discourse_docker.git /var/discourse
    cd /var/discourse
     
    cp samples/standalone.yml containers/app.yml
     
    vim containers/app.yml
     

    templates:
      - "templates/web.ratelimited.template.yml"
      - "templates/web.china.template.yml"

      ## TODO: The domain name this Discourse instance will respond to
      DISCOURSE_HOSTNAME: 'bbs.icoolpy.com'

      ## TODO: List of comma delimited emails that will be made admin and developer
      ## on initial signup example 'user1@example.com,user2@example.com'
      DISCOURSE_DEVELOPER_EMAILS: 'admin@icoolpy.com'

    ## TODO: The SMTP mail server used to validate new accounts and send notifications
    DISCOURSE_SMTP_ADDRESS: smtp.exmail.qq.com         # required
    DISCOURSE_SMTP_PORT: 25                        # (optional, default 587)
    DISCOURSE_SMTP_USER_NAME: admin@icoolpy.com      # required
    DISCOURSE_SMTP_PASSWORD: ******               # required, WARNING the char '#' in pw can cause problems!
    DISCOURSE_SMTP_AUTHENTICATION: login
    DISCOURSE_SMTP_OPENSSL_VERIFY_MODE: none
    #DISCOURSE_SMTP_ENABLE_START_TLS: true           # (optional, default true)

    //独立nginx配置

    https://meta.discourse.org/t/running-other-websites-on-the-same-machine-as-discourse/17247

    ./launcher bootstrap app
     
    ./launcher start app
     
    账号
    cd /var/discourse
    ./launcher enter app
    rake admin:create
     
    登陆dissourse 设置-》必填-》notification email-》admin@icoolpy.com
     
    Usage: launcher COMMAND CONFIG [--skip-prereqs]
    Commands:
        start:      启动/初始化容器
        stop:       关闭运行中的容器
        restart:    重启容器
        destroy:    关闭并删除容器
        enter:      使用 nsenter 进入容器
        ssh:        在运行中的容器中启动 bash shell
        logs:       容器的 Docker 日志
        mailtest:   测试容器中的邮件配置
        bootstrap:  基于配置文件预设模板初始化容器
        rebuild:    重建一个容器(删除老容器,初始化,启动新容器)
  • 相关阅读:
    js日历,使用datepicker.js,ui.core.js,jquery-1.7.1.js
    android设置按钮按下的不同效果图
    a标签阻止跳转的方法
    获取浏览器中选中部分,比如文本等
    Android Studio does not point to a valid jvm
    Drawerlayout
    webviewactivity
    ViewFilpper
    Physik
    Betriebssystem
  • 原文地址:https://www.cnblogs.com/jacle169/p/5808773.html
Copyright © 2011-2022 走看看