Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

外网屏蔽admin页面 #291

Merged
merged 2 commits into from
Oct 26, 2016
Merged

外网屏蔽admin页面 #291

merged 2 commits into from
Oct 26, 2016

Conversation

hyndaniel
Copy link
Contributor

fixed #280

@LuPan2015
Copy link
Collaborator

LGTM

@@ -72,3 +72,6 @@ OPENSTACK:
IP_CINDER: "192.168.190.11"
PORT_CINDER: 8776

PERMISSION:
PERMISSION_IP_1: "192."
PERMISSION_IP_2: "10."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

你这里设计的这个配置项的格式不太合适吧……可以考虑下面的方式:

PERMISSION:
    WHITE_LIST = [ '192.' , '10.' ]
    BLACK_LIST = []                 # 如果以后要扩展黑名单的话,可以考虑再加个这个东西

@hyndaniel
Copy link
Contributor Author

@qqzxingchen please check again

@qqzxingchen
Copy link
Contributor

LGTM

@qqzxingchen qqzxingchen merged commit b98f2de into dev Oct 26, 2016
@qqzxingchen qqzxingchen deleted the fix-280 branch October 26, 2016 02:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[安全问题] django admin页面应该只限制公司内网可以访问
3 participants