Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
J
jumpserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
jumpserver
Commits
f3a50610
Commit
f3a50610
authored
Jun 19, 2017
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] update docker-compose
parent
4141ae51
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
7 deletions
+14
-7
README.md
README.md
+8
-0
middleware.py
apps/jumpserver/middleware.py
+2
-2
docker-compose.yml
docker-compose.yml
+3
-3
build_docker.sh
utils/build_docker.sh
+1
-2
No files found.
README.md
View file @
f3a50610
...
...
@@ -36,3 +36,11 @@ Jumpserver是一款使用Python, Django开发的开源跳板机系统, 助力互
*
[
项目结构描述
](
https://github.com/jumpserver/jumpserver/blob/dev/docs/project_structure.md
)
*
[
Python代码规范
](
https://github.com/jumpserver/jumpserver/blob/dev/docs/python_style_guide.md
)
*
[
API设计规范
](
https://github.com/jumpserver/jumpserver/blob/dev/docs/api_style_guide.md
)
### 贡献者
#### 0.4.0
-
ibuler
<
广宏伟
>
-
小彧
<
李磊
>
Django资深开发者,为users模块贡献了很多代码
-
sofia
<
周小侠
>
资深前端工程师, luna前端代码贡献者和现在维护者
-
liuz
<
刘正
>
全栈工程师, 编写了luna大部分代码
apps/jumpserver/middleware.py
View file @
f3a50610
...
...
@@ -9,7 +9,7 @@ from django.shortcuts import HttpResponse
DEMO_MODE
=
os
.
environ
.
get
(
"DEMO_MODE"
,
""
)
SAFE_URL
=
r'^/users/login|^/api/applications/v1/.*'
SAFE_URL
=
r'^/users/login|^/api/applications/v1/.*
|/api/audits/.*|/api/users/v1/auth/|/api/users/v1/profile/
'
class
TimezoneMiddleware
(
MiddlewareMixin
):
...
...
@@ -24,4 +24,4 @@ class TimezoneMiddleware(MiddlewareMixin):
class
DemoMiddleware
(
MiddlewareMixin
):
def
process_request
(
self
,
request
):
if
DEMO_MODE
and
request
.
method
not
in
[
"GET"
,
"HEAD"
]
and
not
re
.
match
(
SAFE_URL
,
request
.
path
):
return
HttpResponse
(
"Demo mode, only get request accept"
,
403
)
return
HttpResponse
(
"Demo mode, only get request accept"
,
status
=
403
)
docker-compose.yml
View file @
f3a50610
...
...
@@ -5,7 +5,7 @@ services:
container_name
:
redis
restart
:
always
jumpserver
:
image
:
jumpserver/jumpserver:
beta
image
:
jumpserver/jumpserver:
v0.4.0-beta1
container_name
:
jumpserver
restart
:
always
ports
:
...
...
@@ -13,7 +13,7 @@ services:
depends_on
:
-
redis
coco
:
image
:
jumpserver/coco:
beta
image
:
jumpserver/coco:
v0.4.0-beta1
container_name
:
coco
restart
:
always
ports
:
...
...
@@ -21,7 +21,7 @@ services:
depends_on
:
-
jumpserver
luna
:
image
:
jumpserver/luna:
beta
image
:
jumpserver/luna:
v0.4.0-beta1
container_name
:
luna
restart
:
always
ports
:
...
...
utils/build_docker.sh
View file @
f3a50610
...
...
@@ -2,4 +2,4 @@
#
cd
..
docker build
-t
jumpserver/jumpserver:v0.4.0-beta1 .
\ No newline at end of file
docker build
-t
jumpserver/jumpserver:v0.4.0-beta1
.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment