steve-chavez
f033c2c4b5
Add role-claim-key config value
2018-04-30 11:31:06 -05:00
steve-chavez
85b1dc0eb4
Add UPSERT for POST with Prefer:resoultion=merge/ignore-duplicates
2018-02-21 07:33:54 -05:00
Duane Johnson and Joe Nelson
a46b6f5020
Pass custom settings to the DB's SESSION ( #1063 )
...
- allows queries to refer to current_setting('app.settings.foo') to retrieve variables
- useful for 12-factor apps (app data can be in environment)
- provides workaround for AWS Relational Database Service (RDS) not
allowing `ALTER DATABASE SET 'app.[KEY]' TO '[VALUE]'` on database.
2018-02-19 12:41:22 -06:00
Ruslan Talpa and GitHub
e4183780a9
Fix #1016
2017-12-12 15:31:39 +02:00
Joe Nelson and GitHub
804c0b7f6b
Include git sha in version ( #1022 )
2017-12-08 00:29:44 -06:00
steve-chavez
188f947437
Maintain backward compatibility on GUC headers feature
...
If pg version >= 9.6 is detected the feature is enabled,
also all of the 9.6 dependent tests are moved to their own spec.
2017-10-18 17:41:55 -05:00
Pi3r and Joe Nelson
2b5ae34c5a
Update jose to 0.6 ( #997 )
2017-10-15 10:49:25 -04:00
Elliot Murphy and Joe Nelson
3ccae4bb8b
Allow configurable audience claim ( #975 )
2017-09-26 07:29:20 -07:00
Steve Chávez and Joe Nelson
4ba27d84a4
Fix some OpenAPI issues ( #970 )
...
* Fix #933 , update externals docs url to current version
* Fix #962 , openApi don't err on nonexistent schema
* Fix #954 , make OpenAPI rpc output dependent on user privileges
2017-09-25 23:09:52 -07:00
Joe Nelson and GitHub
32117ba477
Dockerfile has typo in server proxy uri variable ( #968 )
...
* s/URL/URI/ in dockerfile
* Treat blank proxy uri as missing
2017-09-09 15:58:37 -05:00
Joe Nelson and GitHub
9b5ce3a8af
Treat blank host config param as missing ( #948 )
...
Docker may pass in an empty string, in which case use the default value
2017-08-23 19:41:45 -05:00
Felix Yan and Joe Nelson
69070b64f9
Fix compatibility with protolude-0.2 ( #939 )
...
This allows the Arch Linux PostgREST package to build cleanly
2017-08-14 01:36:33 -05:00
Joe Nelson and GitHub
9af539b51c
Treat blank pre-request config as missing ( #929 )
2017-08-09 08:42:32 -05:00
Joe Nelson and GitHub
7cc38330a8
Interpolate boolean env vars from conf file ( #897 )
2017-06-25 23:30:23 -05:00
Joe Nelson and GitHub
74227d3c2b
Use env interpolation in config ( #826 )
2017-05-24 22:50:09 -05:00
Diogo Biazus and Joe Nelson
728e40c96c
Update hspec-wai to 0.8.0 ( #799 )
2017-02-14 21:18:01 -08:00
Pi3r and Joe Nelson
1d8318ce26
Increase lower and upper bound for optparse-applicative ( #794 )
2017-02-03 10:00:13 -08:00
Joe Nelson
a61c783e2d
Add link to config docs in message
2017-01-22 16:18:41 -08:00
Trevor Basinger and Joe Nelson
e364cbc3ff
Support binary (b64) JWT secrets ( #772 )
2016-12-11 09:01:03 -08:00
Joe Nelson and GitHub
4df853eff9
Take config path as first param, not flag
...
Include example config in usage message
2016-11-17 22:45:59 -08:00
SteveBash
4064a7b984
Fix fatal error on postgres unsupported version, also fix #577 format of supported version
2016-10-29 13:38:19 -05:00
Joe Nelson and GitHub
9233d90075
Read settings from config file ( #714 )
2016-10-20 08:34:57 -07:00
Joe Nelson and GitHub
74e68408e6
Bring packages up to date ( #722 )
...
* Bring packages up to date
* New LTS includes deps now
Use stack to select most versions
* Alphabetize packages
* Strip down packages
Switch tests to protolude
* Appease cabal check with base version constraint
2016-10-19 22:25:58 -07:00
Joe Nelson
06363ccc77
WIP: add argument for custom pre-request handler
2016-09-27 00:19:05 -07:00
Joe Nelson
62ed9e2c4d
Do not require jwt secret, but die on auth without it
2016-09-24 21:28:08 -07:00
Joe Nelson
449480bf01
Require JWT secret, remove default, optionally read from file
...
Fixes #474 , fixes #495 when file is used
2016-09-24 21:28:08 -07:00
Diogo Biazus and Joe Nelson
6f737056a2
Protolude completion in library and executable ( #697 )
2016-08-21 15:10:19 -07:00
Jacky Hu
1fef1991ef
Add proxy awareness for OpenAPI spec generation
...
Proxy uri from command line options takes precedence over host and port
2016-07-07 19:20:40 +08:00
Jacky Hu
e571cb9fcb
Ability to set addresses to listen on
...
Fixes #461
2016-06-18 10:46:02 +08:00
Jacky Hu
563c5fa778
Make hostname configurable
2016-06-18 10:18:43 +08:00
Jacky Hu
cf4e157de7
Provide a swagger2 spec for the dynamic API
...
Related issue: #144
2016-06-18 10:18:43 +08:00
Ruslan Talpa
40eec0b2ff
code beautify using stylish-haskell
2016-02-29 14:53:41 +02:00
Joe Nelson
17acd134c7
Suppress server logging in test mode
2016-02-22 17:48:33 -08:00
Joe Nelson
4dec445b82
Add example db connection string to usage
2016-02-05 09:30:42 -08:00
Joe Nelson
ccb3eba9e3
Reorder arg list, note that schema is not required
2016-02-05 09:27:24 -08:00
Joe Nelson
a044398552
Adjust usage message to indicate required arguments
2016-02-04 16:27:54 -08:00
Joe Nelson
cb3977679d
App.hs compiles (dubiously)
...
Removed query body is no longer a maybe value
2016-01-24 18:09:19 -08:00
calebmer
bacc899fb4
Change default schema #389
2015-12-13 16:36:32 -05:00
Joe Nelson
cbbb1871bb
Add --max-rows option (no automated tests yet)
...
Fixes #288
2015-12-05 19:03:18 -08:00
Joe Nelson
87c946ef52
Treat JWT as a Secret, not String
2015-11-19 09:58:41 -08:00
calebmer
2f6254f44c
Rename DbStructure names
2015-11-12 15:01:23 -05:00
Ruslan Talpa
1b402abaf2
Merge remote-tracking branch 'begriffs/v3' into v3
2015-11-10 10:22:06 +02:00
calebmer
c024687629
Remove secure flag entirely
2015-11-08 13:03:50 -05:00
Ruslan Talpa
28b7b80bbb
remove PUT from cors
2015-11-04 16:22:13 +02:00
Ruslan Talpa
609f1aabca
Merge remote-tracking branch 'begriffs/v3' into v3
2015-10-16 11:34:10 +03:00
calebmer
de43ac52c4
Rename connection string metavar
2015-10-11 16:47:09 -04:00
calebmer
5feb334191
Use postgres connection string
2015-10-11 16:26:29 -04:00
calebmer
02c405ad80
Remove versioning feature
2015-10-11 13:16:59 -04:00
Ruslan Talpa
6ba4dc4617
Fix for #302
2015-10-08 11:33:42 +03:00
Diogo Biazus
adfd980a60
Moves minimum pg version to config, eliminates magic constant from main and improves docs.
2015-10-06 20:27:54 -04:00