File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,21 @@ sudo journalctl -u caddy --follow
50
50
51
51
If your license contains the OpenFaaS Dashboard, you can also add TLS for the dashboard.
52
52
53
+ There are three steps required:
54
+
55
+ 1 . Set the ` public_url ` environment variable in the ` docker-compose.yml ` file.
56
+ 2 . Add a DNS record for the dashboard.
57
+ 3 . Restart Caddy and faasd
58
+
59
+ First, edit ` /var/lib/faasd/docker-compose.yml ` and add the following to the ` services ` section:
60
+
61
+ ``` diff
62
+ services:
63
+ dashboard:
64
+ environment:
65
+ + - "public_url=https://dashboard.example.com"
66
+ ```
67
+
53
68
Create another DNS record, this time for ` dashboard.example.com ` , and add the following to the Caddyfile:
54
69
55
70
``` caddyfile
@@ -60,6 +75,10 @@ dashboard.example.com {
60
75
61
76
Then restart Caddy as before.
62
77
78
+ Then restart faasd with ` sudo systemctl restart faasd ` .
79
+
80
+ The dashboard will now be accessible via TLS at teh given URL i.e. ` https://dashboard.example.com ` .
81
+
63
82
## Expose a service
64
83
65
84
If you add a stateful service such as Grafana to the compose file, then you can use the same technique to expose it with TLS.
You can’t perform that action at this time.
0 commit comments