Skip to content

Commit

Permalink
Merge pull request #23 from oneingan/fix-tls-disabled
Browse files Browse the repository at this point in the history
fix tls disabled typo and healthcheck
  • Loading branch information
s4ke authored Dec 10, 2024
2 parents 2f083ec + 8ced03a commit 35a3d12
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ services:
- TLS_KEY_FILE=/run/secrets/tls_key
- TLS_CERT_FILE=/run/secrets/tls_cert
- TLS_CA_FILE=/run/secrets/tls_ca
- TLS_DISABLE=false
- TLS_DISABLED=false
user: root
secrets:
- tls_key
Expand Down Expand Up @@ -128,7 +128,7 @@ docker service create --name tenant1_nginx nginx
- TLS_KEY_FILE: Path to TLS key file.
- TLS_CERT_FILE: Path to TLS cert file.
- TLS_CERT_FILE: Path to TLS cert file.
- TLS_DISABLE: Set to 1 or true to disable TLS.
- TLS_DISABLED: Set to 1 or true to disable TLS.


## 🤝 How to achieve Multitenancy with this?
Expand Down
2 changes: 1 addition & 1 deletion deploy/tenant1/stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ services:
- TLS_KEY_FILE=/run/secrets/tls_key
- TLS_CERT_FILE=/run/secrets/tls_cert
- TLS_CA_FILE=/run/secrets/tls_ca
- TLS_DISABLE=false
- TLS_DISABLED=false
user: root
secrets:
- tls_key
Expand Down
2 changes: 1 addition & 1 deletion deploy/tenant2/stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ services:
- TLS_KEY_FILE=/run/secrets/tls_key
- TLS_CERT_FILE=/run/secrets/tls_cert
- TLS_CA_FILE=/run/secrets/tls_ca
- TLS_DISABLE=false
- TLS_DISABLED=false
user: root
secrets:
- tls_key
Expand Down
2 changes: 1 addition & 1 deletion swarmgate/healthcheck.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ if (!TLS_DISABLED) {
timeout: 2000,
host: 'localhost',
port: process.env.PORT || 8080,
path: '/_healthz'
path: '/_ping'
}, (res) => {
console.info('STATUS: ' + res.statusCode);
process.exitCode = (res.statusCode === 200) ? 0 : 1;
Expand Down

0 comments on commit 35a3d12

Please sign in to comment.