Łukasz Mierzwa
d99f7e60d8
Don't create http.FileServer on every favicon request
...
Setup it once and use for all requests
2017-03-28 10:26:13 -07:00
Łukasz Mierzwa
1ba5228cb1
Move view setup after all middleware
...
prometheus middleware needs to be initialized first, before any view is created
2017-03-28 10:26:13 -07:00
Łukasz Mierzwa
cbe15f71af
Add tests for config handling
2017-03-28 10:26:13 -07:00
Łukasz Mierzwa
fd7d3a3585
Move runtime config logging into separate function
...
This should only happen when needed, so moving this to a dedicated function that is called on startup
2017-03-28 09:10:15 -07:00
Łukasz Mierzwa
f810ec31d8
Don't enable debug mode by default
...
This should only be enabled when needed, it's mentioned in the docs
2017-03-28 09:10:15 -07:00
Matt Bostock
dbdd457e9a
Merge pull request #15 from cloudflare/bugfixes
...
Bugfixes
2017-03-28 10:18:52 +01:00
Matt Bostock
5063bd0a2e
Merge pull request #14 from cloudflare/mock-data
...
Add mock data for testing
2017-03-28 10:15:02 +01:00
Matt Bostock
fbc52b13ee
Merge pull request #16 from cloudflare/license
...
License
2017-03-28 09:55:26 +01:00
Łukasz Mierzwa
317936d107
Use links when referencing other files in the repo
2017-03-27 22:30:37 -07:00
Łukasz Mierzwa
1af3d08870
Use correct name for the license file
...
Checked with https://help.github.com/articles/adding-a-license-to-a-repository/ and there should be no '.md' extension on this file
2017-03-27 22:26:53 -07:00
Łukasz Mierzwa
0eb885bded
Compare timestamps as is when sorting
...
Remove rounding of timestamps when sorting alert list, not sure why it was added, it's not needed
2017-03-27 19:40:04 -07:00
Łukasz Mierzwa
c8348ba325
Don't set the default value for flags
...
Let envconfig handle defaults, setting it for flags means that we'll always pass a value to the env if there was a default one, meaning that we're unable to override via env
2017-03-27 19:38:58 -07:00
Łukasz Mierzwa
d6189955b2
Add mock data for testing
2017-03-27 19:36:56 -07:00
Łukasz Mierzwa
870036e497
Merge pull request #9 from cloudflare/js-fixes
...
Js fixes
2017-03-27 10:40:46 -07:00
Łukasz Mierzwa
81197861dd
Enable more features for mock data
2017-03-27 10:40:03 -07:00
Łukasz Mierzwa
2c4770ea5d
Call javascript functions via public methods
...
This fixes cookie reset button, which wasn't working due to name conflicts (reset function in summary.js was called instead)
2017-03-27 10:39:20 -07:00
Łukasz Mierzwa
0bc1547bd5
Merge pull request #7 from cloudflare/doc-updates
...
Doc updates
2017-03-27 09:20:20 -07:00
Łukasz Mierzwa
073f8308cb
Merge pull request #8 from cloudflare/go1.8
...
Use Go 1.8 for the base image
2017-03-27 08:53:47 -07:00
Łukasz Mierzwa
9322b8ab0b
Add CONTRIBUTING.md file
...
This file explains how to get started with unsee development
2017-03-27 07:46:42 -07:00
Łukasz Mierzwa
57ae5299a3
Add make targets for handling vendor dir via manul
...
This will install manul and run allow to run all commands needed to maintain all vendor deps
2017-03-27 07:46:42 -07:00
Łukasz Mierzwa
195d57e8c3
Add a note about installing via go install
...
With assets compiled into the binary unsee is now go installable, add this to the docs
2017-03-27 07:46:42 -07:00
Łukasz Mierzwa
9ce559d5d1
Use Go 1.8 for the base image
...
Current image uses Go 1.7.5, there was an issue with haml templates preventing us from using 1.8 but it was fixed, so we should switch to latest Go version
2017-03-26 19:00:16 -07:00
Łukasz Mierzwa
466640284a
Merge pull request #5 from cloudflare/bin-assets
...
Binary assets and other improvements
2017-03-26 17:52:27 -07:00
Łukasz Mierzwa
6096e3a09b
Add port to the list of options
...
PORT env variable is used by gin, but adding it to the list of config options will generate a flag for it and provide value validation
2017-03-26 17:51:30 -07:00
Łukasz Mierzwa
dc1ce44cfb
Merge Dockerfile commands
...
This will help avoid unnecessary image layers
2017-03-26 17:41:17 -07:00
Łukasz Mierzwa
ec08572f0a
Use application/json for haml templates
...
application/javascript was set in commit 5e501844a7 which works, but causes browsers to throw lots of errors in the console, as they try to parse those scripts as javascript, json type still works and doesn't have same issue with browsers
2017-03-26 17:41:17 -07:00
Łukasz Mierzwa
f8420d4632
Use go-bindata-assetfs for static files
...
This allows unsee to be compiled into a single self-contained binary, without any need to external static files or templates
2017-03-26 17:41:17 -07:00
Łukasz Mierzwa
3027137a96
Cleanup make targets and update readme to match it
...
Refactor make targets to make it easier to follow, add missing PORT env variable to the readme.
2017-03-26 17:41:16 -07:00
Łukasz Mierzwa
8279565ed9
Merge pull request #6 from cloudflare/viper
...
Generate flag for each environment key
2017-03-26 17:15:49 -07:00
Łukasz Mierzwa
3de3a9c481
Generate flag for each environment key
...
This allows to set config keys via flags, in additions to current env variable only configuration. Flags are autogenerated from supported env keys.
2017-03-26 13:38:37 -07:00
Łukasz Mierzwa
8fe7f3b890
Merge pull request #4 from cloudflare/autoinstall-deps
...
Cleanup Makefile
2017-03-24 14:24:50 -07:00
Łukasz Mierzwa
6868df6087
Merge pull request #3 from cloudflare/go-1.8
...
Change template script type to application/javascript
2017-03-24 14:21:40 -07:00
Łukasz Mierzwa
9525cbcbe0
Cleanup Makefile
...
Rename 'make build' to 'make docker-image' so it's more obvious what it's doing
Initialize git submodules automatically when needed, so users don't need to do it manually
2017-03-23 22:56:17 -07:00
Łukasz Mierzwa
5e501844a7
Change template script type to application/javascript
...
Go 1.8 introduced checking of script type and templates are no longer loading, as the script type is not allowed by Go 1.8
https://github.com/golang/go/issues/18569 captures the details.
Change template script type to one of the allowed types, it doesn't matter for clientside-haml-js, it only needs to match the script id
2017-03-23 22:54:07 -07:00
Łukasz Mierzwa
27caf68ffa
Merge pull request #2 from cloudflare/fix-dev-target
...
Fix missing quote in 'make dev' target
2017-03-23 19:59:05 -07:00
Łukasz Mierzwa
2d2eec0567
Fix missing quote in 'make dev' target
2017-03-23 19:57:54 -07:00
Łukasz Mierzwa
e239fd05fd
Import code from internal repository ( #1 )
...
Import code from internal repository
2017-03-23 16:58:04 -07:00
Łukasz Mierzwa
42a6268135
Initial commit
2017-03-16 09:17:27 -07:00