feat: add sample env
This commit is contained in:
parent
3b49790ce4
commit
b9872b5aac
7
.env.sample
Normal file
7
.env.sample
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
ENV=production
|
||||||
|
DATABASE_URL=data.db
|
||||||
|
DATABASE_TYPE=sqlite
|
||||||
|
ADMIN_SECRET=admin
|
||||||
|
DISABLE_EMAIL_VERIFICATION=true
|
||||||
|
JWT_SECRET=random_string
|
||||||
|
JWT_TYPE=HS256
|
2
.github/CONTRIBUTING.md
vendored
2
.github/CONTRIBUTING.md
vendored
|
@ -45,7 +45,7 @@ Please ask as many questions as you need, either directly in the issue or on [Di
|
||||||
1. Fork the [authorizer](https://github.com/authorizerdev/authorizer) repository (**Skip this step if you have access to repo**)
|
1. Fork the [authorizer](https://github.com/authorizerdev/authorizer) repository (**Skip this step if you have access to repo**)
|
||||||
2. `git clone https://github.com/authorizerdev/authorizer.git`
|
2. `git clone https://github.com/authorizerdev/authorizer.git`
|
||||||
3. `cd authorizer`
|
3. `cd authorizer`
|
||||||
4. `mv .env.sample .env`. Check all the supported env [here](TODO)
|
4. `cp .env.sample .env`. Check all the supported env [here](TODO)
|
||||||
5. Build the code `make clean && make`
|
5. Build the code `make clean && make`
|
||||||
> Note: if you don't have [`make`](https://www.ibm.com/docs/en/aix/7.2?topic=concepts-make-command), you can `cd` into `server` dir and build using `go build` command
|
> Note: if you don't have [`make`](https://www.ibm.com/docs/en/aix/7.2?topic=concepts-make-command), you can `cd` into `server` dir and build using `go build` command
|
||||||
6. Run binary `./build/server`
|
6. Run binary `./build/server`
|
||||||
|
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -4,3 +4,4 @@ data
|
||||||
app/node_modules
|
app/node_modules
|
||||||
build
|
build
|
||||||
.env
|
.env
|
||||||
|
data.db
|
|
@ -11,7 +11,7 @@ const (
|
||||||
func (d DbType) String() string {
|
func (d DbType) String() string {
|
||||||
return [...]string{
|
return [...]string{
|
||||||
"postgres",
|
"postgres",
|
||||||
"sqlit",
|
"sqlite",
|
||||||
"mysql",
|
"mysql",
|
||||||
}[d]
|
}[d]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user