dns

How to add SSL to Azure Container Instance App?

只谈情不闲聊 提交于 2020-08-24 09:11:12
问题 As the title says, I need to setup SSL for an app hosted in Azure Container Instances, however, I'm not quite sure where I need to start. I have a containerized app hosted via Azure Container Instances at the address http://myApp.northamerica.azurecontainer.io . This address is masked by the 'official' address at http://api.myApp.com . Is there any reason why I can't just add SSL to the superficial domain @ http://api.myApp.com , that redirects to the real domain @ http://myApp.northamerica

How do I enable custom domains for my users?

本秂侑毒 提交于 2020-08-24 06:27:26
问题 I am looking to allow my users to use their own domain name to access my web service. For example if I have a user with a profile at example.com/users/david how can I allow david to use exampledavid.com to access his profile page. I don't want the users to see example.com in the address bar, but instead for david to see exampledavid.com. 回答1: Your issue can be solved with URL rewrite and HTTP Header manipulation or reverse-proxy. For apache http server: use ProxyPassReverse directive The

How can I read consul SRV records in my go application?

爱⌒轻易说出口 提交于 2020-08-06 12:24:51
问题 I am trying to implement consul for service discovery, and I am having trouble with two things: connecting to a custom DNS server, and formatting my net.LookupSRV() request. Here is what I'm trying to look up from within my go app: $ dig @127.0.0.1 -p 8600 serviceb.service.consul SRV ; <<>> DiG 9.8.4-rpz2+rl005.12-P1 <<>> @127.0.0.1 -p 8600 serviceb.service.consul SRV ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 4511 ;; flags:

How can I read consul SRV records in my go application?

北城以北 提交于 2020-08-06 12:23:10
问题 I am trying to implement consul for service discovery, and I am having trouble with two things: connecting to a custom DNS server, and formatting my net.LookupSRV() request. Here is what I'm trying to look up from within my go app: $ dig @127.0.0.1 -p 8600 serviceb.service.consul SRV ; <<>> DiG 9.8.4-rpz2+rl005.12-P1 <<>> @127.0.0.1 -p 8600 serviceb.service.consul SRV ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 4511 ;; flags: