Bunch of work around assigning reports to districts
I added some DB schema to track logos and to relate reports to organizations. I reworked how GPS data comes from EXIF data on images because it wasn't working for JPEGs. I might have broken PNGs in the process. Also made the config options for domain names more standardized.
This commit is contained in:
parent
486a2d98c2
commit
61d8d14fc2
41 changed files with 3029 additions and 337 deletions
6
main.go
6
main.go
|
|
@ -52,11 +52,11 @@ func main() {
|
|||
sr := nidussync.Router()
|
||||
hr.Map("", sr) // default
|
||||
hr.Map("*", sr) // default
|
||||
hr.Map(config.URLReport, publicreport.Router()) // report.mosquitoes.online
|
||||
hr.Map(config.URLSync, sr)
|
||||
hr.Map(config.DomainRMO, publicreport.Router()) // report.mosquitoes.online
|
||||
hr.Map(config.DomainNidus, sr)
|
||||
r.Mount("/", hr)
|
||||
|
||||
log.Info().Str("report url", config.URLReport).Str("sync url", config.URLSync).Msg("Serving at URLs")
|
||||
log.Info().Str("report url", config.DomainRMO).Str("sync url", config.DomainNidus).Msg("Serving at URLs")
|
||||
|
||||
// Start up background processes
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue