ProxyIPs wird übertragen
This commit is contained in:
10
main.go
10
main.go
@@ -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()
|
||||
}
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user