-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add proxy-setup.sh #42
Conversation
@@ -79,7 +79,7 @@ services: | |||
FRONT_PROXY_PASS: http://frontend:3000 | |||
STATS_PROXY_PASS: http://stats:8050/ | |||
ports: | |||
- 80:80 | |||
- 8088:80 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
listen 443 ssl; | ||
server_name explorer.${CERTBOT_DOMAIN_SUFFIX}; | ||
|
||
ssl_certificate /etc/letsencrypt/live/${CERTBOT_DOMAIN_SUFFIX}/fullchain.pem; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@parketh jfyi, the cert won't be called bridge.tohma.snapchain.dev, explorer.tohma.snapchain.dev
now all certs are created under the same dir
# 2. obtain the SSL certificate for each subdomain
# the certs will be stored in /etc/letsencrypt/live/${CERTBOT_DOMAIN_SUFFIX}
#
# note that Certbot creates a single certificate that's valid for all those
# domains (called a SAN - Subject Alternative Names certificate)
#
# after running the command, you can verify by:
# sudo openssl x509 -in /etc/letsencrypt/live/${CERTBOT_DOMAIN_SUFFIX}/fullchain.pem -text | grep DNS:
#
# reference: https://eff-certbot.readthedocs.io/en/latest/using.html
certbot certonly --nginx --non-interactive --agree-tos -m ${CERTBOT_EMAIL} \
--cert-name ${CERTBOT_DOMAIN_SUFFIX} \
-d rpc.${CERTBOT_DOMAIN_SUFFIX} \
-d bridge.${CERTBOT_DOMAIN_SUFFIX} \
-d explorer.${CERTBOT_DOMAIN_SUFFIX}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so do we generate one certificate for the domain, and reuse it across tohma-devnet and tohma-finality-system servers? or are these two different certificates for the same domain?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes there is only one file
sudo ls /etc/letsencrypt/live/tohma.snapchain.dev ─╯
README cert.pem chain.pem fullchain.pem privkey.pem
and you can run this command on the server to test
sudo openssl x509 -in /etc/letsencrypt/live/tohma.snapchain.dev/fullchain.pem -text | grep DNS: ─╯
DNS:bridge.tohma.snapchain.dev, DNS:explorer.tohma.snapchain.dev, DNS:rpc.tohma.snapchain.dev
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's a single cert the valid for all domains
Summary
Snapchain/babylon-deployment#47
Test Plan
then check success
also see
verify the certs
now restart the explorer after setting
.env.explorer
withsee https://explorer.tohma.snapchain.dev/ can load
also https://bridge.tohma.snapchain.dev/ loads
also rpc works
cast chain-id --rpc-url https://rpc.tohma.snapchain.dev/