Skip to content

Commit fd5c67e

Browse files
committed
Declare npmctl managed TLS certificates
1 parent 6f12ca7 commit fd5c67e

2 files changed

Lines changed: 26 additions & 5 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
- name: Validate Docker proxy target
7373
run: npm run proxy:target-check
7474
- name: Validate npmctl proxy desired state
75-
run: npmctl validate desired-state/proxy.yaml
75+
run: npmctl validate .tmp/npmctl/proxy.yaml
7676
- name: Build site image
7777
run: docker-compose -f docker-compose.yaml build docs-swarmauri-com
7878
- name: Restart site container
@@ -99,8 +99,8 @@ jobs:
9999
continue-on-error: true
100100
run: npmctl schema check
101101
- name: Adopt matching unmanaged NPM resources
102-
run: npmctl adopt desired-state/proxy.yaml --owner docs-swarmauri-com --force
102+
run: npmctl adopt .tmp/npmctl/proxy.yaml --owner docs-swarmauri-com --force
103103
- name: Plan Nginx Proxy Manager host with npmctl
104-
run: npmctl plan desired-state/proxy.yaml --owner docs-swarmauri-com
104+
run: npmctl plan .tmp/npmctl/proxy.yaml --owner docs-swarmauri-com
105105
- name: Apply Nginx Proxy Manager host with npmctl
106-
run: npmctl apply desired-state/proxy.yaml --owner docs-swarmauri-com
106+
run: npmctl apply .tmp/npmctl/proxy.yaml --owner docs-swarmauri-com

desired-state/proxy.yaml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,38 @@
11
---
22
apiVersion: npmctl.com/v1
33
schemaVersion: 2
4+
certificates:
5+
- name: docs-swarmauri-com-letsencrypt
6+
domain_names:
7+
- docs.swarmauri.com
8+
certificate_type: letsencrypt
9+
api_payload:
10+
provider: letsencrypt
11+
meta:
12+
letsencrypt_email: "__NPM_IDENTITY__"
13+
letsencrypt_agree: true
14+
dns_challenge: false
15+
managed_by: npmctl
16+
owner: docs-swarmauri-com
17+
resource_id: cert.docs-swarmauri-com
18+
meta:
19+
managed_by: npmctl
20+
owner: docs-swarmauri-com
21+
resource_id: cert.docs-swarmauri-com
422
proxy_hosts:
523
- domain_names:
624
- docs.swarmauri.com
725
forward_scheme: http
826
forward_host: docs-swarmauri-com
927
forward_port: 80
28+
certificate_ref: cert.docs-swarmauri-com
1029
ssl_forced: 1
1130
http2_support: 1
31+
hsts_enabled: 1
32+
hsts_subdomains: 0
1233
allow_websocket_upgrade: 1
1334
block_exploits: 1
1435
meta:
1536
managed_by: npmctl
1637
owner: docs-swarmauri-com
17-
resource_id: proxy.docs-swarmauri-com
38+
resource_id: proxy.docs-swarmauri-com

0 commit comments

Comments
 (0)