Arrange HTTPS configuration

This commit is contained in:
Luke Murphy 2020-03-25 01:21:53 +01:00
parent 4e41bf3e33
commit f72c4c8996
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
4 changed files with 18 additions and 3 deletions

View File

@ -1,5 +1,5 @@
FROM drone/drone:1 FROM drone/drone:1
EXPOSE 80 EXPOSE 8097
COPY . ${WORKDIR} COPY . ${WORKDIR}

View File

@ -12,7 +12,7 @@
dokku_ports: dokku_ports:
app: drone app: drone
mappings: mappings:
- "http:80:80" - "http:80:{{ drone_port }}"
state: present state: present
- name: Setup LE certificates - name: Setup LE certificates
@ -25,9 +25,22 @@
args: args:
creates: /home/dokku/drone/letsencrypt/cron-job 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 - name: Set HTTP 443 port
dokku_ports: dokku_ports:
app: drone app: drone
mappings: mappings:
- "https:443:80" - "https:443:{{ drone_port }}"
state: present state: present

View File

@ -42,3 +42,4 @@
DRONE_RPC_SECRET: "{{ rpc_secret }}" DRONE_RPC_SECRET: "{{ rpc_secret }}"
DRONE_SERVER_HOST: "{{ domain }}" DRONE_SERVER_HOST: "{{ domain }}"
DRONE_SERVER_PROTO: "https" DRONE_SERVER_PROTO: "https"
DRONE_SERVER_PORT: "{{ drone_port }}"

View File

@ -2,3 +2,4 @@
domain: "drone.autonomic.zone" domain: "drone.autonomic.zone"
autonomic_admin_mail: "helo@autonomic.zone" autonomic_admin_mail: "helo@autonomic.zone"
gitea_domain: "git.autonomic.zone" gitea_domain: "git.autonomic.zone"
drone_port: "8097"