Fixed accessing drone container
This commit is contained in:
@@ -14,6 +14,8 @@
|
|||||||
|
|
||||||
# keep the host
|
# keep the host
|
||||||
ProxyPreserveHost On
|
ProxyPreserveHost On
|
||||||
|
RequestHeader set X-Forwarded-Proto "https"
|
||||||
|
RequestHeader set X-Forwarded-Host "{{ ci_domain }}"
|
||||||
ProxyPass / http://127.0.0.1:8000/
|
ProxyPass / http://127.0.0.1:8000/
|
||||||
ProxyPassReverse / http://127.0.0.1:8000/
|
ProxyPassReverse / http://127.0.0.1:8000/
|
||||||
|
|
||||||
|
|||||||
@@ -5,14 +5,15 @@ services:
|
|||||||
image: drone/drone:1
|
image: drone/drone:1
|
||||||
|
|
||||||
ports:
|
ports:
|
||||||
- 8000:8000
|
- "8000:80"
|
||||||
|
- "8001:443"
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
- /var/lib/drone:/data
|
- /var/lib/drone:/data
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
- DRONE_SERVER_HOST={{ ci_domain }}
|
- DRONE_SERVER_HOST={{ ci_domain }}
|
||||||
- DRONE_SERVER_PROTO=http
|
- DRONE_SERVER_PROTO=https
|
||||||
- DRONE_RUNNER_CAPACITY=2
|
- DRONE_RUNNER_CAPACITY=2
|
||||||
- DRONE_USER_CREATE=username:{{ gitea_user }},admin:true
|
- DRONE_USER_CREATE=username:{{ gitea_user }},admin:true
|
||||||
- DRONE_GITEA_SERVER={{ gitea_url }}
|
- DRONE_GITEA_SERVER={{ gitea_url }}
|
||||||
|
|||||||
Reference in New Issue
Block a user