Commit f3a50610 authored by ibuler's avatar ibuler

[Update] update docker-compose

parent 4141ae51
...@@ -36,3 +36,11 @@ Jumpserver是一款使用Python, Django开发的开源跳板机系统, 助力互 ...@@ -36,3 +36,11 @@ Jumpserver是一款使用Python, Django开发的开源跳板机系统, 助力互
* [项目结构描述](https://github.com/jumpserver/jumpserver/blob/dev/docs/project_structure.md) * [项目结构描述](https://github.com/jumpserver/jumpserver/blob/dev/docs/project_structure.md)
* [Python代码规范](https://github.com/jumpserver/jumpserver/blob/dev/docs/python_style_guide.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) * [API设计规范](https://github.com/jumpserver/jumpserver/blob/dev/docs/api_style_guide.md)
### 贡献者
#### 0.4.0
- ibuler <广宏伟>
- 小彧 <李磊> Django资深开发者,为users模块贡献了很多代码
- sofia <周小侠> 资深前端工程师, luna前端代码贡献者和现在维护者
- liuz <刘正> 全栈工程师, 编写了luna大部分代码
...@@ -9,7 +9,7 @@ from django.shortcuts import HttpResponse ...@@ -9,7 +9,7 @@ from django.shortcuts import HttpResponse
DEMO_MODE = os.environ.get("DEMO_MODE", "") 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): class TimezoneMiddleware(MiddlewareMixin):
...@@ -24,4 +24,4 @@ class TimezoneMiddleware(MiddlewareMixin): ...@@ -24,4 +24,4 @@ class TimezoneMiddleware(MiddlewareMixin):
class DemoMiddleware(MiddlewareMixin): class DemoMiddleware(MiddlewareMixin):
def process_request(self, request): def process_request(self, request):
if DEMO_MODE and request.method not in ["GET", "HEAD"] and not re.match(SAFE_URL, request.path): 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)
...@@ -5,7 +5,7 @@ services: ...@@ -5,7 +5,7 @@ services:
container_name: redis container_name: redis
restart: always restart: always
jumpserver: jumpserver:
image: jumpserver/jumpserver:beta image: jumpserver/jumpserver:v0.4.0-beta1
container_name: jumpserver container_name: jumpserver
restart: always restart: always
ports: ports:
...@@ -13,7 +13,7 @@ services: ...@@ -13,7 +13,7 @@ services:
depends_on: depends_on:
- redis - redis
coco: coco:
image: jumpserver/coco:beta image: jumpserver/coco:v0.4.0-beta1
container_name: coco container_name: coco
restart: always restart: always
ports: ports:
...@@ -21,7 +21,7 @@ services: ...@@ -21,7 +21,7 @@ services:
depends_on: depends_on:
- jumpserver - jumpserver
luna: luna:
image: jumpserver/luna:beta image: jumpserver/luna:v0.4.0-beta1
container_name: luna container_name: luna
restart: always restart: always
ports: ports:
......
...@@ -2,4 +2,4 @@ ...@@ -2,4 +2,4 @@
# #
cd .. cd ..
docker build -t jumpserver/jumpserver:v0.4.0-beta1 . docker build -t jumpserver/jumpserver:v0.4.0-beta1 .
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment