Skip to content

Commit

Permalink
feat: add ssl trusted certificate
Browse files Browse the repository at this point in the history
  • Loading branch information
jchiarulli committed Sep 3, 2024
1 parent 4e97018 commit 8e5bb4d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/network/nginx_https.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ server {
# https://cryptcheck.fr/
ssl_certificate /etc/letsencrypt/live/%s/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/%s/privkey.pem;
# Verify chain of trust of OCSP response using Root CA and Intermediate certs
ssl_trusted_certificate /etc/letsencrypt/live/%s/chain.pem;
# Only return Nginx in server header
server_tokens off;
Expand Down Expand Up @@ -123,7 +125,7 @@ server {
return 301 https://%s$request_uri;
}
}
`, domainName, dirName, domainName, domainName, domainName, dirName, domainName)
`, domainName, dirName, domainName, domainName, domainName, domainName, dirName, domainName)

err = os.WriteFile("/etc/nginx/conf.d/nostr_relay.conf", []byte(configContent), 0644)
if err != nil {
Expand Down

0 comments on commit 8e5bb4d

Please sign in to comment.