mirror of
https://github.com/Unkn0wnCat/calapi.git
synced 2025-04-28 09:36:20 +02:00
Add .env file
This commit is contained in:
parent
37b27ec3e0
commit
a5a030eba9
4 changed files with 16 additions and 4 deletions
6
.env.dist
Normal file
6
.env.dist
Normal file
|
@ -0,0 +1,6 @@
|
|||
CALAPI_DEVELOPMENT=0
|
||||
CALAPI_DATA_DIRECTORY=./data
|
||||
CALAPI_AUTH__TYPE=GHOST
|
||||
CALAPI_AUTH__SECRET=CH4NG3_M3
|
||||
CALAPI_AUTH__ANONYMOUS_READ=1
|
||||
CALAPI_AUTH__GHOST__BASE_URL=https://demo.ghost.io/ghost
|
6
.gitignore
vendored
6
.gitignore
vendored
|
@ -2,4 +2,8 @@
|
|||
/calapi.exe
|
||||
|
||||
/data
|
||||
/download
|
||||
/download
|
||||
|
||||
.env
|
||||
.env.*
|
||||
!.env.dist
|
4
.idea/calapi.iml
generated
4
.idea/calapi.iml
generated
|
@ -2,7 +2,9 @@
|
|||
<module type="WEB_MODULE" version="4">
|
||||
<component name="Go" enabled="true" />
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$" />
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<excludeFolder url="file://$MODULE_DIR$/data" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
|
|
|
@ -34,8 +34,8 @@ func init() {
|
|||
viper.SetDefault("auth.type", "GHOST")
|
||||
viper.SetDefault("auth.secret", "hunter2")
|
||||
viper.SetDefault("auth.anonymous_read", true)
|
||||
viper.SetDefault("auth.ghost.base_url", "https://content.hhga.1in9.net/ghost")
|
||||
viper.SetDefault("auth.ghost.limit_to_roles", nil)
|
||||
viper.SetDefault("auth.ghost.base_url", "https://demo.ghost.io/ghost")
|
||||
//viper.SetDefault("auth.ghost.limit_to_roles", nil)
|
||||
|
||||
viper.AutomaticEnv()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue