Skip to content

Instantly share code, notes, and snippets.

@raloliver
Created November 24, 2020 15:42
Show Gist options
  • Save raloliver/c97bed59228b1d4cb96b86da216086ca to your computer and use it in GitHub Desktop.
Save raloliver/c97bed59228b1d4cb96b86da216086ca to your computer and use it in GitHub Desktop.
serviceconfig.json (remove cors)
{
"log": ["*"],
"CORS": {
"origin": ["http://localhost:4200"],
"loginOrigin": ["http://localhost:4200"],
"headers": ["Content-Type", "x-caller-chain"],
"maxAge": 1728000
},
"adminInterface": "127.0.0.1:4985",
"interface": "0.0.0.0:4984",
"databases": {
"database-name": {
"server": "walrus:data",
"users": {
"GUEST": { "disabled": false, "admin_channels": ["*"] }
},
"allow_conflicts": false,
"revs_limit": 20,
"bucket": "bucket-name"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment