Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc9d8194

Browse files
committed
Disable HTTPS in Docker
1 parentbbd1cdf commitc9d8194

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

‎backend/book/settings.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
]
7474

7575
SECURE_PROXY_SSL_HEADER= ('HTTP_X_FORWARDED_PROTO','https')
76-
SECURE_SSL_REDIRECT=notRoot.DEBUG
76+
SECURE_SSL_REDIRECT=not(Root.DEBUGorRoot.DISABLE_HTTPS)
7777

7878
ROOT_URLCONF='book.urls'
7979

‎backend/main/simple_settings.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ class Root(DryEnv):
2121
SECRET_KEY='kt1+4_u=ga%3v3@fy0@7c(&lq%)6tt=c+f-(ihd32@t$)i6gjm'
2222
GITHUB_TOKEN=""
2323

24+
DISABLE_HTTPS=False
25+
2426

2527
classMONITOR(DryEnv):
2628
ACTIVE=False

‎docker-compose.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ services:
1515
DATABASE_URL:postgres://postgres:pass@database/postgres
1616
DEBUG:'False'
1717
MASTER_URL:http://master:5000/
18+
DISABLE_HTTPS:'True'
1819
stdin_open:true
1920
tty:true
2021
master:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp