mirror of
https://github.com/dariusk/express-activitypub.git
synced 2024-11-23 07:41:00 +00:00
Make it so config.json is not checked in
This commit is contained in:
parent
62f0fa88dd
commit
24a4ad52c0
3 changed files with 14 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
|||
node_modules/
|
||||
package-lock.json
|
||||
*.db
|
||||
config.json
|
||||
|
|
|
@ -20,6 +20,10 @@ Clone the repository, then `cd` into its root directory. Install dependencies:
|
|||
|
||||
`npm i`
|
||||
|
||||
Copy `config-template.json` to `config.json`.
|
||||
|
||||
`cp config-template.json config.json`
|
||||
|
||||
Update your `config.json` file:
|
||||
|
||||
```js
|
||||
|
@ -45,7 +49,7 @@ Enter "test" in the "Create Account" section and hit the "Create Account" button
|
|||
|
||||
## Local testing
|
||||
|
||||
You can use a service like [ngrok](https://ngrok.com/) to test things out before you deploy on a real server. All you need to do is install ngrok and run `ngrok http 3000` (or whatever port you're using if you changed it). Then go to your `config.json` and update the `DOMAIN` field to whatever `abcdef.ngrok.io` domain that ngrok gives you and restart your server.
|
||||
You can use a service like [ngrok](https://ngrok.com/) to test things out before you deploy on a real server. All you need to do is install ngrok and run `ngrok http 3000` (or whatever port you're using if you changed it). Then go to your `config.json` and update the `DOMAIN` field to whatever `abcdef.ngrok.io` domain that ngrok gives you and restart your server. *For local testing you do not need to specify `PRIVKEY_PATH` or `CERT_PARTH`.*
|
||||
|
||||
## Admin Page
|
||||
|
||||
|
|
8
config-template.json
Normal file
8
config-template.json
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"USER": "",
|
||||
"PASS": "",
|
||||
"DOMAIN": "",
|
||||
"PORT": "3000",
|
||||
"PRIVKEY_PATH": "",
|
||||
"CERT_PATH": ""
|
||||
}
|
Loading…
Reference in a new issue