如何更改AWS ec2实例上托管的Jenkins的URL?

时间:2022-12-04 07:53:09

Example: Currently I'm accessing Jenkins on : IP_address:8080 I want to customize the URL and make it available for public use: http:\jenkins-myjob-myproject.com

示例:目前我正在访问Jenkins:IP_address:8080我想自定义URL并使其可供公众使用:http:\ jenkins-myjob-myproject.com

Any leads for this? Do I need to set-up a proxy? I'm totally alien to this. Any suggestions would be really helpful. Thanks!

这有什么线索?我需要设置代理吗?我对此完全陌生。任何建议都会非常有用。谢谢!

1 个解决方案

#1


0  

You could use Route 53 and also attach an Elastic IP to your EC2 instance so its public IP address won't change. Be careful with Elastic IPs because if they are not attached to any instance they'll charge you. Additionally, you could try to use a WebServer like Nginx as reverse proxy.

您可以使用Route 53并将弹性IP附加到EC2实例,以使其公共IP地址不会更改。小心使用弹性IP,因为如果它们没有附加到任何实例,它们会向您收取费用。此外,您可以尝试使用像Nginx这样的WebServer作为反向代理。

#1


0  

You could use Route 53 and also attach an Elastic IP to your EC2 instance so its public IP address won't change. Be careful with Elastic IPs because if they are not attached to any instance they'll charge you. Additionally, you could try to use a WebServer like Nginx as reverse proxy.

您可以使用Route 53并将弹性IP附加到EC2实例,以使其公共IP地址不会更改。小心使用弹性IP,因为如果它们没有附加到任何实例,它们会向您收取费用。此外,您可以尝试使用像Nginx这样的WebServer作为反向代理。