starting on frontend, auth finished for backend

This commit is contained in:
2021-08-22 22:24:59 -04:00
parent 59c2a7a0d5
commit 85d6c610f4
19 changed files with 1043 additions and 22 deletions

View File

@@ -1,10 +1,17 @@
# All values in this config file WILL BE overwritten by ENV variables if they exist.
# All values in this config file WILL BE overwritten by ENV variables (GI_SERVER_PORT for example) if they exist.
Server:
port: 3000
locationPhotoDir: "./app/photos/locations/"
Logger:
loglevel: "debug" # debug/info/warn/error
loggingFile: "./app/log/goInventorize.log"
TZ: "Africa/Casablanca" # For goinventorize TZ, TZ in UNDERLYING docker image (scratch) is not set
Authentication:
BasicAuth: true
UserName: "admin"
Password: "password"
TZ: "America/New_York" # For goinventorize TZ, TZ in UNDERLYING docker image (scratch) is not set
Development: false

76
app/log/goInventorize.log Normal file
View File

@@ -0,0 +1,76 @@
{"level":"info","time":"2021-08-22T13:27:54-04:00","message":"Configuration loaded successfully..."}
{"level":"debug","time":"2021-08-22T13:27:54-04:00","message":"{Timezone:America/New_York Server:{Port:3500} Logger:{Level:debug LoggingFile:./app/log/goInventorize.log} UserName:admin Password:password Development:false}"}
{"level":"info","time":"2021-08-22T13:27:54-04:00","message":"Database and Config loaded, starting webserver..."}
{"level":"info","time":"2021-08-22T13:35:32-04:00","message":"Configuration loaded successfully..."}
{"level":"debug","time":"2021-08-22T13:35:32-04:00","message":"{Timezone:America/New_York Server:{Port:3500} Logger:{Level:debug LoggingFile:./app/log/goInventorize.log} UserName:admin Password:password Development:false}"}
{"level":"info","time":"2021-08-22T13:35:32-04:00","message":"Database and Config loaded, starting webserver..."}
{"logtype":"webserver", "pid":"5784", "requestid":"", "status":"500", "method":"POST", "path":"/locations/new"}
{"level":"info","time":"2021-08-22T13:37:07-04:00","message":"Configuration loaded successfully..."}
{"level":"debug","time":"2021-08-22T13:37:07-04:00","message":"{Timezone:America/New_York Server:{Port:3500} Logger:{Level:debug LoggingFile:./app/log/goInventorize.log} UserName:admin Password:password Development:false}"}
{"level":"info","time":"2021-08-22T13:37:07-04:00","message":"Database and Config loaded, starting webserver..."}
{"level":"info","time":"2021-08-22T13:37:44-04:00","message":"Configuration loaded successfully..."}
{"level":"debug","time":"2021-08-22T13:37:44-04:00","message":"{Timezone:America/New_York Server:{Port:3500} Logger:{Level:debug LoggingFile:./app/log/goInventorize.log} UserName:admin Password:password Development:false}"}
{"level":"info","time":"2021-08-22T13:37:44-04:00","message":"Database and Config loaded, starting webserver..."}
{"level":"info","time":"2021-08-22T13:42:16-04:00","message":"Configuration loaded successfully..."}
{"level":"debug","time":"2021-08-22T13:42:16-04:00","message":"{Timezone:America/New_York Server:{Port:3500 LocationPhotoDir:./app/photos/locations} Logger:{Level:debug LoggingFile:./app/log/goInventorize.log} UserName:admin Password:password Development:false}"}
{"level":"info","time":"2021-08-22T13:42:16-04:00","message":"Database and Config loaded, starting webserver..."}
{"level":"info","time":"2021-08-22T13:45:00-04:00","message":"Configuration loaded successfully..."}
{"level":"debug","time":"2021-08-22T13:45:00-04:00","message":"{Timezone:America/New_York Server:{Port:3500 LocationPhotoDir:./app/photos/locations/} Logger:{Level:debug LoggingFile:./app/log/goInventorize.log} UserName:admin Password:password Development:false}"}
{"level":"info","time":"2021-08-22T13:45:00-04:00","message":"Database and Config loaded, starting webserver..."}
{"level":"info","time":"2021-08-22T13:45:02-04:00","message":"Configuration loaded successfully..."}
{"level":"debug","time":"2021-08-22T13:45:02-04:00","message":"{Timezone:America/New_York Server:{Port:3500 LocationPhotoDir:./app/photos/locations/} Logger:{Level:debug LoggingFile:./app/log/goInventorize.log} UserName:admin Password:password Development:false}"}
{"level":"info","time":"2021-08-22T13:45:02-04:00","message":"Database and Config loaded, starting webserver..."}
{"level":"info","time":"2021-08-22T13:46:58-04:00","message":"Configuration loaded successfully..."}
{"level":"debug","time":"2021-08-22T13:46:58-04:00","message":"{Timezone:America/New_York Server:{Port:3500 LocationPhotoDir:./app/photos/locations/} Logger:{Level:debug LoggingFile:./app/log/goInventorize.log} UserName:admin Password:password Development:false}"}
{"level":"info","time":"2021-08-22T13:46:58-04:00","message":"Database and Config loaded, starting webserver..."}
{"level":"info","time":"2021-08-22T13:48:49-04:00","message":"Configuration loaded successfully..."}
{"level":"debug","time":"2021-08-22T13:48:49-04:00","message":"{Timezone:America/New_York Server:{Port:3500 LocationPhotoDir:./app/photos/locations/} Logger:{Level:debug LoggingFile:./app/log/goInventorize.log} UserName:admin Password:password Development:false}"}
{"level":"info","time":"2021-08-22T13:48:49-04:00","message":"Database and Config loaded, starting webserver..."}
{"level":"info","time":"2021-08-22T13:49:00-04:00","message":"Adding new location to database: %!(EXTRA main.Location={0 Location1 ./app/photos/locations/Location1/2020-05-23 11_08_43-Montage_Sword_LHL.png [./app/photos/locations/Location1/2020-05-22 22_47_24-ForlornOutcast - Unreal Editor.png ./app/photos/locations/Location1/2020-05-22 20_57_56-Wwise.png] [] Notes for my location!})"}
{"logtype":"webserver", "pid":"30684", "requestid":"", "status":"200", "method":"POST", "path":"/locations/new"}
{"level":"info","time":"2021-08-22T13:49:02-04:00","message":"Configuration loaded successfully..."}
{"level":"debug","time":"2021-08-22T13:49:02-04:00","message":"{Timezone:America/New_York Server:{Port:3500 LocationPhotoDir:./app/photos/locations/} Logger:{Level:debug LoggingFile:./app/log/goInventorize.log} UserName:admin Password:password Development:false}"}
{"level":"info","time":"2021-08-22T13:49:02-04:00","message":"Database and Config loaded, starting webserver..."}
{"level":"debug","time":"2021-08-22T19:08:54-04:00","message":"Returning Locations: [{ID:1 Name:Location1 Description: CoverPhoto:./app/photos/locations/Location1/2020-05-23 11_08_43-Montage_Sword_LHL.png Photos:[./app/photos/locations/Location1/2020-05-22 22_47_24-ForlornOutcast - Unreal Editor.png ./app/photos/locations/Location1/2020-05-22 20_57_56-Wwise.png] Rooms:[] Notes:Notes for my location!}]"}
{"logtype":"webserver", "pid":"23944", "requestid":"", "status":"404", "method":"GET", "path":"/locations"}
{"level":"info","time":"2021-08-22T19:09:08-04:00","message":"Configuration loaded successfully..."}
{"level":"debug","time":"2021-08-22T19:09:08-04:00","message":"{Timezone:America/New_York Server:{Port:3500 LocationPhotoDir:./app/photos/locations/} Logger:{Level:debug LoggingFile:./app/log/goInventorize.log} UserName:admin Password:password Development:false}"}
{"level":"info","time":"2021-08-22T19:09:08-04:00","message":"Database and Config loaded, starting webserver..."}
{"level":"info","time":"2021-08-22T19:09:10-04:00","message":"Configuration loaded successfully..."}
{"level":"debug","time":"2021-08-22T19:09:10-04:00","message":"{Timezone:America/New_York Server:{Port:3500 LocationPhotoDir:./app/photos/locations/} Logger:{Level:debug LoggingFile:./app/log/goInventorize.log} UserName:admin Password:password Development:false}"}
{"level":"info","time":"2021-08-22T19:09:10-04:00","message":"Database and Config loaded, starting webserver..."}
{"level":"info","time":"2021-08-22T19:09:33-04:00","message":"Configuration loaded successfully..."}
{"level":"debug","time":"2021-08-22T19:09:33-04:00","message":"{Timezone:America/New_York Server:{Port:3500 LocationPhotoDir:./app/photos/locations/} Logger:{Level:debug LoggingFile:./app/log/goInventorize.log} UserName:admin Password:password Development:false}"}
{"level":"info","time":"2021-08-22T19:09:33-04:00","message":"Database and Config loaded, starting webserver..."}
{"level":"info","time":"2021-08-22T19:14:21-04:00","message":"Configuration loaded successfully..."}
{"level":"debug","time":"2021-08-22T19:14:21-04:00","message":"{Timezone:America/New_York Server:{Port:3500 LocationPhotoDir:./app/photos/locations/} Logger:{Level:debug LoggingFile:./app/log/goInventorize.log} UserName:admin Password:password Development:false}"}
{"level":"info","time":"2021-08-22T19:14:21-04:00","message":"Database and Config loaded, starting webserver..."}
{"logtype":"webserver", "pid":"22984", "requestid":"", "status":"401", "method":"GET", "path":"/locations"}
{"logtype":"webserver", "pid":"22984", "requestid":"", "status":"401", "method":"GET", "path":"/locations"}
{"logtype":"webserver", "pid":"22984", "requestid":"", "status":"401", "method":"GET", "path":"/locations"}
{"level":"debug","time":"2021-08-22T19:15:19-04:00","message":"Returning Locations: [{ID:1 Name:Location1 Description: CoverPhoto:./app/photos/locations/Location1/2020-05-23 11_08_43-Montage_Sword_LHL.png Photos:[./app/photos/locations/Location1/2020-05-22 22_47_24-ForlornOutcast - Unreal Editor.png ./app/photos/locations/Location1/2020-05-22 20_57_56-Wwise.png] Rooms:[] Notes:Notes for my location!}]"}
{"logtype":"webserver", "pid":"22984", "requestid":"", "status":"404", "method":"GET", "path":"/locations"}
{"level":"debug","time":"2021-08-22T19:15:58-04:00","message":"Returning Locations: [{ID:1 Name:Location1 Description: CoverPhoto:./app/photos/locations/Location1/2020-05-23 11_08_43-Montage_Sword_LHL.png Photos:[./app/photos/locations/Location1/2020-05-22 22_47_24-ForlornOutcast - Unreal Editor.png ./app/photos/locations/Location1/2020-05-22 20_57_56-Wwise.png] Rooms:[] Notes:Notes for my location!}]"}
{"logtype":"webserver", "pid":"22984", "requestid":"", "status":"404", "method":"GET", "path":"/locations"}
{"level":"debug","time":"2021-08-22T20:08:40-04:00","message":"Returning Locations: [{ID:1 Name:Location1 Description: CoverPhoto:./app/photos/locations/Location1/2020-05-23 11_08_43-Montage_Sword_LHL.png Photos:[./app/photos/locations/Location1/2020-05-22 22_47_24-ForlornOutcast - Unreal Editor.png ./app/photos/locations/Location1/2020-05-22 20_57_56-Wwise.png] Rooms:[] Notes:Notes for my location!}]"}
{"logtype":"webserver", "pid":"22984", "requestid":"", "status":"404", "method":"GET", "path":"/locations"}
{"level":"debug","time":"2021-08-22T20:08:52-04:00","message":"Returning Locations: [{ID:1 Name:Location1 Description: CoverPhoto:./app/photos/locations/Location1/2020-05-23 11_08_43-Montage_Sword_LHL.png Photos:[./app/photos/locations/Location1/2020-05-22 22_47_24-ForlornOutcast - Unreal Editor.png ./app/photos/locations/Location1/2020-05-22 20_57_56-Wwise.png] Rooms:[] Notes:Notes for my location!}]"}
{"logtype":"webserver", "pid":"22984", "requestid":"", "status":"404", "method":"GET", "path":"/locations"}
{"level":"info","time":"2021-08-22T21:28:11-04:00","message":"Configuration loaded successfully..."}
{"level":"debug","time":"2021-08-22T21:28:11-04:00","message":"{Timezone:America/New_York Server:{Port:3500 LocationPhotoDir:./app/photos/locations/} Logger:{Level:debug LoggingFile:./app/log/goInventorize.log} UserName:admin Password:password Development:false}"}
{"level":"info","time":"2021-08-22T21:28:11-04:00","message":"Database and Config loaded, starting webserver..."}
{"level":"info","time":"2021-08-22T21:28:12-04:00","message":"Configuration loaded successfully..."}
{"level":"debug","time":"2021-08-22T21:28:12-04:00","message":"{Timezone:America/New_York Server:{Port:3500 LocationPhotoDir:./app/photos/locations/} Logger:{Level:debug LoggingFile:./app/log/goInventorize.log} UserName:admin Password:password Development:false}"}
{"level":"info","time":"2021-08-22T21:28:12-04:00","message":"Database and Config loaded, starting webserver..."}
{"level":"info","time":"2021-08-22T21:30:21-04:00","message":"Configuration loaded successfully..."}
{"level":"debug","time":"2021-08-22T21:30:21-04:00","message":"{Timezone:America/New_York Server:{Port:3500 LocationPhotoDir:./app/photos/locations/} Logger:{Level:debug LoggingFile:./app/log/goInventorize.log} Authentication:{BasicAuth:true UserName:admin Password:password} Development:false}"}
{"level":"info","time":"2021-08-22T21:30:21-04:00","message":"Database and Config loaded, starting webserver..."}
{"level":"info","time":"2021-08-22T21:31:40-04:00","message":"Configuration loaded successfully..."}
{"level":"debug","time":"2021-08-22T21:31:40-04:00","message":"{Timezone:America/New_York Server:{Port:3500 LocationPhotoDir:./app/photos/locations/} Logger:{Level:debug LoggingFile:./app/log/goInventorize.log} Authentication:{BasicAuth:true UserName:admin Password:password} Development:false}"}
{"level":"info","time":"2021-08-22T21:31:40-04:00","message":"Database and Config loaded, starting webserver..."}
{"level":"info","time":"2021-08-22T21:34:34-04:00","message":"Configuration loaded successfully..."}
{"level":"debug","time":"2021-08-22T21:34:34-04:00","message":"{Timezone:America/New_York Server:{Port:3500 LocationPhotoDir:./app/photos/locations/} Logger:{Level:debug LoggingFile:./app/log/goInventorize.log} Authentication:{BasicAuth:true UserName:admin Password:password} Development:false}"}
{"level":"info","time":"2021-08-22T21:34:34-04:00","message":"Database and Config loaded, starting webserver..."}
{"level":"info","time":"2021-08-22T21:58:40-04:00","message":"Configuration loaded successfully..."}
{"level":"debug","time":"2021-08-22T21:58:40-04:00","message":"{Timezone:America/New_York Server:{Port:3500 LocationPhotoDir:./app/photos/locations/} Logger:{Level:debug LoggingFile:./app/log/goInventorize.log} Authentication:{BasicAuth:true UserName:admin Password:password} Development:false}"}
{"level":"info","time":"2021-08-22T21:58:40-04:00","message":"Database and Config loaded, starting webserver..."}

Binary file not shown.

After

Width:  |  Height:  |  Size: 349 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 536 KiB