Skip to content

iWiki Documentation

Oren Zhang edited this page May 11, 2024 · 2 revisions

Deploy

Before you deploy iWiki, please contact us through email so that we can provide you OVINC API url for SSO, if you want to host OVINC API self, also, please email us for deploy documentation.

Deploy Web

Fork iWiki and deploy it using Vercel.

# Environments
SITE_URL=<SITE URL>
BACKEND_URL=<API URL>
OVINC_WEB_URL=<OVINC WEB URL>
OVINC_URL=<OVINC UNION API URL>

# Example
SITE_URL=https://wiki.example.com
BACKEND_URL=https://api.wiki.example.com
OVINC_WEB_URL=https://www.example.com
OVINC_URL=https://api.example.com

Deploy API

Deploy API on Docker or K8S

Image

ccr.ccs.tencentyun.com/ovinc/iwiki-api:v-1.1.1-20240316

Environments

UWSGI_PROCESSES: "1"
UWSGI_THREADS: "10"
DEBUG: "False"
LOG_LEVEL: "INFO"
APP_CODE: ""
APP_SECRET: ""
BACKEND_HOST: "api-wiki.example.com"
FRONTEND_URL: "https://wiki.example.com"
DB_HOST: "127.0.0.1"
DB_NAME: "iwiki"
DB_PASSWORD: ""
DB_PORT: "3306"
DB_USER: "root"
REDIS_DB: "0"
REDIS_HOST: "127.0.0.1"
REDIS_PASSWORD: ""
REDIS_PORT: "6379"
SESSION_COOKIE_DOMAIN: ".example.com"
OVINC_API_DOMAIN: "https://api.example.com"
QCLOUD_SECRET_ID: ""
QCLOUD_SECRET_KEY: ""
QCLOUD_COS_BUCKET: ""
QCLOUD_COS_URL: "https://cos.example.com"
WORKER_COUNT: "1"
OTLP_HOST: "http://127.0.0.1:4317"
OTLP_TOKEN: ""
RUM_ID: ""
Clone this wiki locally