Commit Graph

74 Commits (f218c2a7910d9d8246a92090269fa4be4872416f)

Author SHA1 Message Date
1138-4EB 2c526077c0
style: rename functions in root.go (#623)
* replace isFlagSet with Changed

* style: rename mustGetStringViperFlag and getStringViperFlag, use getParamB to read noauth

* style

* style: move

* fix build error

* rename getServerWithViper to getRunParams
2019-01-08 21:10:27 +01:00
Henrique Dias e0a3ce95f2
feat: add no auth to quick setup (#621) 2019-01-08 18:43:04 +00:00
1138-4EB d0fd97d943
chore: style and gofmt (#622) 2019-01-08 19:40:14 +01:00
Henrique Dias 66010d877e feat: quick docs update
License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
2019-01-08 17:00:36 +00:00
Henrique Dias e68af011d4 feat: add docs info
License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
2019-01-08 16:37:02 +00:00
Henrique Dias 2ba5a4275a docs: improve some cli docs
License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
2019-01-08 16:09:25 +00:00
1138-4EB 7a775c42a1 use log.Fatal instead of panic 2019-01-08 16:21:03 +01:00
1138-4EB b4708348c6 enable version subcmd and --version flag for root cmd and all subcmds 2019-01-08 16:20:23 +01:00
Henrique Dias 88644664e4 fix: root
License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
2019-01-08 14:43:46 +00:00
Henrique Dias 72069207c6
fix: use server options from DB too (#616)
License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
2019-01-08 14:07:55 +00:00
Henrique Dias 76bf72902d feat: add replace opt 2019-01-08 12:03:34 +00:00
Henrique Dias fc06f642f2 feat: simplify flag adding
License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
2019-01-08 10:50:37 +00:00
Henrique Dias 0e7abaa7fb
feat: make server options a struct (#615) 2019-01-08 10:29:09 +00:00
Henrique Dias 73b8d2ee7e
feat: config/users import/export (#613)
Supports json and yaml.
2019-01-08 08:57:24 +00:00
Henrique Dias 46b221533a feat: remove useless code
License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
2019-01-07 23:11:00 +00:00
Henrique Dias 33a58c999a fix: rename global scope as root and fix root md
License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
2019-01-07 20:34:44 +00:00
Henrique Dias 01ff03e426
feat: wrap commands to send info (#612)
Wrap commands in a better way to pass storage
2019-01-07 20:24:23 +00:00
Henrique Dias f396602084 feat: rename import to upgrade
License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
2019-01-07 19:22:32 +00:00
Henrique Dias 148d233d7a fix: remove init from root
License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
2019-01-07 19:21:29 +00:00
Henrique Dias ebaed3c390 feat: improve docs output
License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
2019-01-06 18:36:47 +00:00
Henrique Dias 550269d2ed feat: only hash if it's default pw
License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
2019-01-06 17:55:47 +00:00
Henrique Dias a2742dff16 feat: add hash command
License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
2019-01-06 17:53:47 +00:00
Henrique Dias 999c69de5c feat: cleanup cli
License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
2019-01-06 15:26:46 +00:00
Henrique Dias 2b8bd28158 merge with master
License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
2019-01-06 13:20:17 +00:00
Henrique Dias f55f205ced
feat: add global scope (#604)
License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
2019-01-06 13:01:42 +00:00
Henrique Dias e22598a126 feat: change default to 8080
License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
2019-01-06 12:57:35 +00:00
Henrique Dias 12eb050cc2 feat: simplify future changes
License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
2019-01-06 12:41:52 +00:00
Henrique Dias a8ff679ae3 feat: dont persist server data on database
License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
2019-01-06 12:26:48 +00:00
1138-4EB 1080bfde68 [WIP] add viper to manage envvars and cfg files 2019-01-06 06:11:15 +01:00
Henrique Dias 92fda0070c 🧹: gofmt 2019-01-05 23:01:16 +00:00
Henrique Dias d309066def
feat: v2 (#599)
Read https://github.com/filebrowser/filebrowser/pull/575.
2019-01-05 22:44:33 +00:00
1138-4EB 69a3f853bd feat: use cobra to provide subcommands, move sources to lib (#506)
- Use cobra in order to provide subcommands `serve` and `db`.
  - Subdir `cmd` is removed.
  - Subdir `cli` is created, which is a standard cobra structure.
- Sources related to the core are moved to subdir `lib`.
- #497 and #504 are merged.
- Deprecated flags are added. See https://github.com/filebrowser/filebrowser/pull/497#discussion_r209428120.
- [`viper.BindPFlags`](https://godoc.org/github.com/spf13/viper#BindPFlags) is used in order to reduce the verbosity in `serve.go`.
2018-08-22 01:29:51 +01:00
1138-4EB 1e12bb7f7c
fix(config): ensure provided config path is used (#508) 2018-08-16 09:37:07 +01:00
maweck ed62451ea0 feat: proxy auth support (#485)
* Change the order of commands to be able to cache more layers in case of multiple builds triggered in a row

* Fix #471

* Format Code

* Revert "Change the order of commands to be able to cache more layers in case of multiple builds triggered in a row"

This reverts commit 01362f34ee.

* Adjustment based on the review

* Rename "login-header" to "loginHeader" and prepare auth.method to accept "none" as a value

* Fixed line break

* Readd "lumberjack.v2" import which was removed by gofmt

Sorry - I do my tests and run "gofmt" before comitting the changes - It sadly seems like it is messing up the imports over and over again.
2018-08-08 10:06:16 +01:00
Michael Lawson 54d0845212 Fix typo preventing "--allow-edit" from being set (#392) 2018-04-06 05:24:32 +08:00
Equim 6e1c6a4a8c alternative ReCaptcha, close #366 2018-02-27 17:12:54 +00:00
Henrique Dias 613a3f2811
refactor: moving repository
* refactor

* updates

* add circle

* update circle

* fix circle
2018-02-01 13:38:43 +00:00
Henrique Dias 0781b961da remove file 2017-12-29 17:31:21 +00:00
Henrique Dias d98b58e0f0 Version 1.4.0 2017-12-29 16:33:50 +00:00
Henrique Dias 1d4cbd622c GOFMT 2017-10-30 15:47:59 +00:00
Henrique Dias 99c8c92c6c fix #260 2017-10-30 15:24:06 +00:00
Equim 4b84492a11 i18n: auto detect locale from browser (#253)
* i18n: detect locale from browser

* fix regex for locale matching

* remove debug code
2017-10-15 08:12:40 +01:00
Henrique Dias 8633e9677b
ViewMode constants; default view modes 2017-10-09 08:26:05 +01:00
Henrique Dias 879ad7b518
Add ReCaptcha to main 2017-09-11 09:23:59 +01:00
Henrique Dias 5daacf0298
Default view mode 2017-09-07 10:41:01 +01:00
Henrique Dias 044575d2af
Add version stuff on root 2017-09-03 10:41:14 +01:00
Henrique Dias 359e311da1
fix bug 2017-09-01 18:18:00 +01:00
Henrique Dias 3fde3c716b
prefix url as a flag 2017-09-01 17:48:15 +01:00
Henrique Dias 5c2166bc15
fix error 2017-09-01 13:26:04 +01:00
Henrique Dias 2a5aa21b8d
fix #226 2017-09-01 13:17:10 +01:00