Work with the ports

This commit is contained in:
Luke Murphy 2020-03-25 01:24:22 +01:00
parent f72c4c8996
commit c0a5593329
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
2 changed files with 14 additions and 14 deletions

View File

@ -8,13 +8,6 @@
extensions:
- yml
- name: Set HTTP 80 port proxy
dokku_ports:
app: drone
mappings:
- "http:80:{{ drone_port }}"
state: present
- name: Setup LE certificates
shell: dokku letsencrypt drone
args:
@ -31,16 +24,16 @@
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:{{ drone_port }}"
state: present
- name: Remove automatically configured ports
dokku_ports:
app: gitea
mappings:
- "http:{{ drone_port }}:{{ drone_port }}"
state: absent

View File

@ -43,3 +43,10 @@
DRONE_SERVER_HOST: "{{ domain }}"
DRONE_SERVER_PROTO: "https"
DRONE_SERVER_PORT: "{{ drone_port }}"
- name: Set HTTP 80 port proxy
dokku_ports:
app: drone
mappings:
- "http:80:{{ drone_port }}"
state: present