This commit is contained in:
		
							
								
								
									
										2
									
								
								main.go
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								main.go
									
									
									
									
									
								
							@@ -50,7 +50,7 @@ func main() {
 | 
				
			|||||||
	serverAddr := pflag.StringP("address", "a", ":8080", "Webhook server address")
 | 
						serverAddr := pflag.StringP("address", "a", ":8080", "Webhook server address")
 | 
				
			||||||
	genHash := pflag.BoolP("gen-hash", "g", false, "Generate a password hash for webhooks")
 | 
						genHash := pflag.BoolP("gen-hash", "g", false, "Generate a password hash for webhooks")
 | 
				
			||||||
	useEnv := pflag.BoolP("use-env", "E", false, "Use environment variables for configuration")
 | 
						useEnv := pflag.BoolP("use-env", "E", false, "Use environment variables for configuration")
 | 
				
			||||||
	debug := pflag.BoolP("debug", "d", false, "Enable debug logging")
 | 
						debug := pflag.BoolP("debug", "D", false, "Enable debug logging")
 | 
				
			||||||
	pflag.Parse()
 | 
						pflag.Parse()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if *debug {
 | 
						if *debug {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -42,7 +42,7 @@ job "lure-updater" {
 | 
				
			|||||||
      config {
 | 
					      config {
 | 
				
			||||||
        image   = "alpine:latest"
 | 
					        image   = "alpine:latest"
 | 
				
			||||||
        command = "/opt/lure-updater/lure-updater"
 | 
					        command = "/opt/lure-updater/lure-updater"
 | 
				
			||||||
        args    = ["-dE"]
 | 
					        args    = ["-DE"]
 | 
				
			||||||
        ports   = ["webhook"]
 | 
					        ports   = ["webhook"]
 | 
				
			||||||
        volumes = ["local/lure-updater/:/opt/lure-updater:ro"]
 | 
					        volumes = ["local/lure-updater/:/opt/lure-updater:ro"]
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user