Questions tagged [go]
23 questions
0
votes
1 answer
Best way to update a binary?
So I'm making a load balancer that compiles to a binary. This will be scaled across multiple servers.
To update, the program itself will check a GitHub repo for a new release every 5 minutes, if there is a new release, it downloads it overwriting…

KIVOX
- 3
- 1
0
votes
0 answers
netcat no reaction to syn packet crafted with gopacket
I want to do some experiments with TCP packets. Therefore I am using the gopacket (v1.1.19) to craft packets and send them onto an interface.
I have this code for creating a SYN packet and putting it on loopback and sending to 127.0.0.1:8888 where I…

jonathan-dev
- 101
0
votes
1 answer
Nginx server keeps serving Debian main page
I am trying to set up a simple custom website. I have built a simple server using Golang and the Gin-gonic framework. My Go server is as follows:
func main() {
r := gin.Default()
r.GET("/", ServeMainPage)
…

AChenet
- 1
0
votes
2 answers
How to properly forward the request remote address to a proxied Go service?
I have a simple go service that checks the request IP address by using Request.RemoteAddr from the standard net/http package.
This go service is deployed behind nginx with the following simple location configuration:
location /api {
proxy_pass…

P.Larich
- 1
- 1
0
votes
1 answer
How does EOL work for a specific package that is part of the main repo in a Linux distribution?
I'm running Ubuntu 18.04 LTS, which has an EOL date of April 2023.
go1.10 is included as part of Ubuntu 18.04's main repository. This is already considered EOL. (https://endoflife.date/go)
According to https://ubuntu.com/about/release-cycle
The…

sheepbrew
- 237
- 2
- 3
0
votes
1 answer
Golang - Nginx proxy pass issue
I have a golang application running on port 3001.
curl http://127.0.0.1:3001 gives the correct HTML response. But I am facing issues when I am trying to do a proxy_pass via NginX.
Below is my NginX configuration. I am doing a route based location…

ArunKolhapur
- 101
- 4
0
votes
1 answer
Issue running Golang server binary as a service with Systemd
I am trying to run a Golang server binary as a service with Systemd on Centos 8, but I get an error.
This is my script…

Daniele B
- 367
- 1
- 4
- 14
-1
votes
1 answer
Redhat ubi8-micro container without trusted root ca certificates
I want to run a simple GO application on the registry.access.redhat.com/ubi8/ubi-micro image.
But unfortunately I get x509: certificate signed by unknown authority errors in my app because there it seems there is no root ca truststore on the…

Michel
- 183
- 1
- 1
- 8