mirror of
https://github.com/arnaucube/goImgServer.git
synced 2026-02-07 03:26:43 +01:00
minimal config changes
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"serverIP": "127.0.0.1",
|
"serverIP": "192.168.1.36",
|
||||||
"serverPort": "3050",
|
"serverPort": "3050",
|
||||||
"folder": "files",
|
"folder": "files",
|
||||||
"blockedIPs": [
|
"blockedIPs": [
|
||||||
|
|||||||
@@ -63,5 +63,5 @@ func NewImage(w http.ResponseWriter, r *http.Request) {
|
|||||||
fmt.Println(err)
|
fmt.Println(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Fprintln(w, config.ServerIP+":"+config.ServerPort+"/images/"+fileName)
|
fmt.Fprintln(w, "http://"+config.ServerIP+":"+config.ServerPort+"/images/"+fileName)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user