|
git clone https://github.com/tendenci/tendenci-dockerized.git
cd tendenci-dockerized
cp .env.sample .env
# 编辑 .env,填入数据库信息 & Django SECRET_KEY
docker build --no-cache -t tendenci .
docker-compose up -d
docker-compose build
docker-compose up -d
docker-compose logs -f
docker exec -it tendenci-dockerized-tendenci-1 /bin/bash
apt update && apt install -y nano
nano /home/tendenci/install/mysite/conf/settings.py
加
ALLOWED_HOSTS = ['m.teochew.jp', 'localhost', '127.0.0.1']
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
CSRF_COOKIE_SECURE = True
SESSION_COOKIE_SECURE = True
DEBUG = True
|
|