Arrange HTTPS configuration
This commit is contained in:
parent
4e41bf3e33
commit
f72c4c8996
@ -1,5 +1,5 @@
|
||||
FROM drone/drone:1
|
||||
|
||||
EXPOSE 80
|
||||
EXPOSE 8097
|
||||
|
||||
COPY . ${WORKDIR}
|
||||
|
@ -12,7 +12,7 @@
|
||||
dokku_ports:
|
||||
app: drone
|
||||
mappings:
|
||||
- "http:80:80"
|
||||
- "http:80:{{ drone_port }}"
|
||||
state: present
|
||||
|
||||
- name: Setup LE certificates
|
||||
@ -25,9 +25,22 @@
|
||||
args:
|
||||
creates: /home/dokku/drone/letsencrypt/cron-job
|
||||
|
||||
- name: Specify certificate docker volume mounts
|
||||
dokku_storage:
|
||||
app: keycloak
|
||||
mounts:
|
||||
- "/home/dokku/drone/letsencrypt/certs:/etc/ssl/certs/"
|
||||
|
||||
- name: Remove automatically configured ports
|
||||
dokku_ports:
|
||||
app: gitea
|
||||
mappings:
|
||||
- "http:{{ drone_port }}:{{ drone_port }}"
|
||||
state: absent
|
||||
|
||||
- name: Set HTTP 443 port
|
||||
dokku_ports:
|
||||
app: drone
|
||||
mappings:
|
||||
- "https:443:80"
|
||||
- "https:443:{{ drone_port }}"
|
||||
state: present
|
||||
|
@ -42,3 +42,4 @@
|
||||
DRONE_RPC_SECRET: "{{ rpc_secret }}"
|
||||
DRONE_SERVER_HOST: "{{ domain }}"
|
||||
DRONE_SERVER_PROTO: "https"
|
||||
DRONE_SERVER_PORT: "{{ drone_port }}"
|
||||
|
@ -2,3 +2,4 @@
|
||||
domain: "drone.autonomic.zone"
|
||||
autonomic_admin_mail: "helo@autonomic.zone"
|
||||
gitea_domain: "git.autonomic.zone"
|
||||
drone_port: "8097"
|
||||
|
Reference in New Issue
Block a user