ProxyIPs wird übertragen

This commit is contained in:
HuskyTeufel
2022-02-03 13:56:56 +01:00
parent d6ec124fde
commit 23eb6f1b25

10
main.go
View File

@@ -19,6 +19,7 @@ func main() {
dbuser := os.Getenv("DB_USER")
dbpass := os.Getenv("DB_PASS")
dbdata := os.Getenv("DB_DATA")
proxyip := os.Getenv("PROXYIP")
connectionstring := fmt.Sprintf("host=%s user=%s password=%s dbname=%s sslmode=disable", dbhost, dbuser, dbpass, dbdata)
@@ -30,15 +31,8 @@ func main() {
app := App{
db: db,
r: gin.Default(),
proxyips: []string{"172.19.0.2"},
proxyips: []string{proxyip},
}
app.start()
//r := gin.Default()
}
/*func terminateWithError(statusCode int, message string, c *gin.Context) {
c.JSON(statusCode, gin.H{"error": message})
c.Abort()
}
*/