Skip to content
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

Implement HTTPS #1

Closed
murphye opened this issue Dec 31, 2021 · 2 comments
Closed

Implement HTTPS #1

murphye opened this issue Dec 31, 2021 · 2 comments

Comments

@murphye
Copy link
Owner

murphye commented Dec 31, 2021

How to do with gcloud

gcloud beta compute url-maps create regional-l7-xlb-map-https \
--default-service=l7-xlb-backend-service-http \
--region=us-west4

openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout tls.key -out tls.crt -subj "/CN=*"

gcloud beta compute ssl-certificates create l7-xlb-cert \
--certificate=tls.crt \
--private-key=tls.key \
--region=us-west4

gcloud beta compute target-https-proxies create l7-xlb-proxy-https \
--url-map=regional-l7-xlb-map-https \
--region=us-west4 \
--ssl-certificates=l7-xlb-cert

gcloud beta compute forwarding-rules create l7-xlb-forwarding-rule-https \
--load-balancing-scheme=EXTERNAL_MANAGED \
--network-tier=STANDARD \
--network=my-network \
--ports=443 \
--region=us-west4 \
--target-https-proxy=l7-xlb-proxy-https \
--target-https-proxy-region=us-west4 \
--address=my-static-ip
@murphye
Copy link
Owner Author

murphye commented Dec 31, 2021

@murphye
Copy link
Owner Author

murphye commented Jan 23, 2022

Implementing HTTPS and HTTP redirect. README updated with instructions.

@murphye murphye closed this as completed Jan 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant