-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
184 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,30 @@ | ||
rootEmail=admin@localhost | ||
rootSecretKey=65a84cf8f10de58411fada48ddba93158983daae | ||
APP_ROOT_EMAIL=admin@localhost | ||
APP_ROOT_SECRET_KEY=password | ||
|
||
jwtSecret=60ae393744191ee58869f700c1d27647b0b64d42 | ||
apiGatewayUrl=http://localhost:8080 | ||
actuatorPassword=password | ||
# sso|mail|root | ||
APP_AUTHENTICATION=root | ||
APP_JWT_SECRET=60ae393744191ee58869f700c1d27647b0b64d42 | ||
APP_API_GATEWAY_URL=http://localhost:8080 | ||
APP_HOST_URL=http://localhost:4200 | ||
APP_ACTUATOR_PASSWORD=password | ||
APP_TIMEZONE=Europe/Berlin | ||
APP_LOG_LEVEL=error | ||
|
||
APP_MAIL_SENDER= | ||
APP_MAIL_HOST= | ||
APP_MAIL_PORT= | ||
APP_MAIL_USERNAME= | ||
APP_MAIL_PASSWORD= | ||
|
||
# database | ||
sqlUser=postgres | ||
sqlPassword=admin | ||
sqlUrl=jdbc:postgresql://localhost:5432/ | ||
databaseName=feedless | ||
POSTGRES_USER=postgres | ||
POSTGRES_PASSWORD=admin | ||
POSTGRES_DB=feedless | ||
|
||
# sso provider | ||
googleClientId=343423943511-t83rkoi6ul369b2e2p2it8dt5554i9cu.apps.googleusercontent.com | ||
googleClientSecret=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 | ||
SSO_GOOGLE_CLIENT_ID= | ||
SSO_GOOGLE_CLIENT_SECRET= | ||
|
||
githubClientId=Iv1.3fc36e6644b030c3 | ||
githubClientSecret=b49d33465c75bcbc78fa7e3b313266f8c41f4e63 | ||
SSO_GITHUB_CLIENT_ID= | ||
SSO_GITHUB_CLIENT_SECRET= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Authentication Options | ||
|
||
By customizing the flag `APP_AUTHENTICATION` you can pick your authentication strategy that suits you best. | ||
|
||
## Single Tenant | ||
### Root Login | ||
`APP_AUTHENTICATION=root` will enable the single tenant authentication. You can login in the UI using `$APP_ROOT_EMAIL` and `$APP_ROOT_SECRET_KEY`. | ||
|
||
## Multi Tenant | ||
### Magic Link via email (Multi Tenant) | ||
Magic Auth Links is the most decoupled authentication strategy. | ||
|
||
`APP_AUTHENTICATION=mail` will activate a two-phased login process using magic links via email. | ||
In order to send emails you need to configure an SMTP server by filling out all `APP_MAIL_*` fields. | ||
|
||
This feature is not yet fully implemented. It would need some kind of registration for new users (invitation links or plain signup). Create a ticket if | ||
you think this is useful. | ||
|
||
### Single Sign On (Multi Tenant) | ||
SSO is the strategy used in the `feedless` prod deployment, cause it is the most seamless. | ||
By setting `APP_AUTHENTICATION=sso` authentication is run through the defined SSO providers. If the oauth reply is successful, `feedless` will | ||
create its own token for internal authentication. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Self-Hosting feedless | ||
|
||
Simplest `feedless` setup is using [docker-compose](https://docs.docker.com/compose/install/linux/). | ||
Configuration is achived by envoronment flags defined in `.env`. | ||
|
||
## Preparation | ||
* Download the respective files from the repository. | ||
```shell | ||
wget https://raw.githubusercontent.com/damoeb/feedless/master/.env \ | ||
https://raw.githubusercontent.com/damoeb/feedless/master/docker-compose.selfhosting.yml | ||
``` | ||
* Customize the `.env` file | ||
|
||
## Single Tenant (default) | ||
The default authentication strategy is `root` which is single tenant. You can log in using `$APP_ROOT_EMAIL` and `$APP_ROOT_SECRET_KEY`. | ||
Changing these value require a restart or `core`. | ||
|
||
## Multi Tenant | ||
For multi tenant can be enabled by picking a different [authentication strategy](./authentication.md) than root login. | ||
|
||
## Start Containers | ||
* Start the containers | ||
```shell | ||
docker-compose -f docker-compose.selfhosting.yml up -d | ||
``` | ||
|
||
Validate the authentication strategy in the logs (switch `APP_LOG_LEVEL=info`) | ||
```shell | ||
feedless-core_1 | 14:59:56.181 [main] INFO PropertyService - property authentication = authRoot | ||
``` | ||
|
||
Wait until you see the feedless banner | ||
```shell | ||
feedless-core_1 | . . | ||
feedless-core_1 | ,- | | | ||
feedless-core_1 | | ,-. ,-. ,-| | ,-. ,-. ,-. | ||
feedless-core_1 | |- |-' |-' | | | |-' `-. `-. | ||
feedless-core_1 | | `-' `-' `-' ' `-' `-' `-' | ||
feedless-core_1 | -' | ||
feedless-core_1 | | ||
feedless-core_1 | feedless:core v0.1.0-e144ffe https://github.com/damoeb/feedless | ||
``` | ||
and open UI in browser `http://localhost:4200` | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
#!/usr/bin/env sh | ||
|
||
echo "Verifying DNS resolution using $DNS_TEST_URL" | ||
nslookup $DNS_TEST_URL | grep $DNS_TEST_URL | ||
if test -z "$DNS_TEST_URL" | ||
then | ||
echo "Skipping DNS check" | ||
else | ||
echo "Verifying DNS resolution using $DNS_TEST_URL" | ||
nslookup $DNS_TEST_URL | grep $DNS_TEST_URL | ||
fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.