Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YPP API free Signup Workflow #315

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,8 @@ logs:
# username: elastic-username
# password: elastic-password
youtube:
clientId: google-client-id
clientSecret: google-client-secret
# adcKeyFilePath: path/to/adc-key-file.json
# maxAllowedQuotaUsageInPercentage: 95
operationalApi:
url: http://127.0.0.1:8889
proxy:
url: socks5://chisel-client:1080
chiselProxy:
Expand All @@ -52,9 +50,6 @@ httpApi:
port: 3001
ownerKey: ypp-owner-key
joystream:
faucet:
endpoint: http://localhost:3002/register
captchaBypassKey: some-random-key
app:
name: app-name
accountSeed: 'example_string_seed'
Expand Down
19 changes: 10 additions & 9 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,14 @@ services:
YT_SYNCH__ENDPOINTS__REDIS__PORT: ${YT_SYNCH__ENDPOINTS__REDIS__PORT}
# YT_SYNCH__HTTP_API__PORT: ${YT_SYNCH__HTTP_API__PORT}
# YT_SYNCH__HTTP_API__OWNER_KEY: ${YT_SYNCH__HTTP_API__OWNER_KEY}
# YT_SYNCH__YOUTUBE__CLIENT_ID: ${YT_SYNCH__YOUTUBE__CLIENT_ID}
# YT_SYNCH__YOUTUBE__CLIENT_SECRET: ${YT_SYNCH__YOUTUBE__CLIENT_SECRET}
YT_SYNCH__YOUTUBE__OPERATIONAL_API__URL: http://youtube-operational-api
# YT_SYNCH__AWS__ENDPOINT: http://host.docker.internal:4566
# YT_SYNCH__AWS__CREDENTIALS__ACCESS_KEY_ID: ${YT_SYNCH__AWS__CREDENTIALS__ACCESS_KEY_ID}
# YT_SYNCH__AWS__CREDENTIALS__SECRET_ACCESS_KEY: ${YT_SYNCH__AWS__CREDENTIALS__SECRET_ACCESS_KEY}
# YT_SYNCH__JOYSTREAM__CHANNEL_COLLABORATOR__ACCOUNT: ${YT_SYNCH__JOYSTREAM__CHANNEL_COLLABORATOR__ACCOUNT}
# YT_SYNCH__JOYSTREAM__CHANNEL_COLLABORATOR__MEMBER_ID: ${YT_SYNCH__JOYSTREAM__CHANNEL_COLLABORATOR__MEMBER_ID}
# YT_SYNCH__JOYSTREAM__APP__NAME: ${YT_SYNCH__JOYSTREAM__APP__NAME}
# YT_SYNCH__JOYSTREAM__APP__ACCOUNT_SEED: ${YT_SYNCH__JOYSTREAM__APP__ACCOUNT_SEED}
# YT_SYNCH__JOYSTREAM__FAUCET__ENDPOINT: ${YT_SYNCH__JOYSTREAM__FAUCET__ENDPOINT}
# YT_SYNCH__JOYSTREAM__FAUCET__CAPTCHA_BYPASS_KEY: ${YT_SYNCH__JOYSTREAM__FAUCET__CAPTCHA_BYPASS_KEY}
OTEL_EXPORTER_OTLP_ENDPOINT: ${TELEMETRY_ENDPOINT}
ports:
- 127.0.0.1:${YT_SYNCH__HTTP_API__PORT}:${YT_SYNCH__HTTP_API__PORT}
Expand Down Expand Up @@ -78,17 +75,14 @@ services:
YT_SYNCH__ENDPOINTS__REDIS__PORT: ${YT_SYNCH__ENDPOINTS__REDIS__PORT}
# YT_SYNCH__HTTP_API__PORT: ${YT_SYNCH__HTTP_API__PORT}
# YT_SYNCH__HTTP_API__OWNER_KEY: ${YT_SYNCH__HTTP_API__OWNER_KEY}
# YT_SYNCH__YOUTUBE__CLIENT_ID: ${YT_SYNCH__YOUTUBE__CLIENT_ID}
# YT_SYNCH__YOUTUBE__CLIENT_SECRET: ${YT_SYNCH__YOUTUBE__CLIENT_SECRET}
# YT_SYNCH__AWS__ENDPOINT: http://host.docker.internal:4566
YT_SYNCH__YOUTUBE__OPERATIONAL_API__URL: http://youtube-operational-api
# YT_SYNCH__AWS__ENDPOINT: ${YT_SYNCH__AWS__ENDPOINT}
# YT_SYNCH__AWS__CREDENTIALS__ACCESS_KEY_ID: ${YT_SYNCH__AWS__CREDENTIALS__ACCESS_KEY_ID}
# YT_SYNCH__AWS__CREDENTIALS__SECRET_ACCESS_KEY: ${YT_SYNCH__AWS__CREDENTIALS__SECRET_ACCESS_KEY}
# YT_SYNCH__JOYSTREAM__CHANNEL_COLLABORATOR__ACCOUNT: ${YT_SYNCH__JOYSTREAM__CHANNEL_COLLABORATOR__ACCOUNT}
# YT_SYNCH__JOYSTREAM__CHANNEL_COLLABORATOR__MEMBER_ID: ${YT_SYNCH__JOYSTREAM__CHANNEL_COLLABORATOR__MEMBER_ID}
# YT_SYNCH__JOYSTREAM__APP__NAME: ${YT_SYNCH__JOYSTREAM__APP__NAME}
# YT_SYNCH__JOYSTREAM__APP__ACCOUNT_SEED: ${YT_SYNCH__JOYSTREAM__APP__ACCOUNT_SEED}
# YT_SYNCH__JOYSTREAM__FAUCET__ENDPOINT: ${YT_SYNCH__JOYSTREAM__FAUCET__ENDPOINT}
# YT_SYNCH__JOYSTREAM__FAUCET__CAPTCHA_BYPASS_KEY: ${YT_SYNCH__JOYSTREAM__FAUCET__CAPTCHA_BYPASS_KEY}
networks:
- youtube-synch
command: ['./bin/run', 'start', '--service', 'sync']
Expand All @@ -103,6 +97,13 @@ services:
- youtube-synch
volumes:
- redis-data:/data
youtube-operational-api:
image: benjaminloison/youtube-operational-api
container_name: youtube-operational-api
ports:
- 127.0.0.1:8889:80
networks:
- youtube-synch

volumes:
logs:
Expand Down

This file was deleted.

This file was deleted.

46 changes: 0 additions & 46 deletions docs/config/definition-properties-joystream-properties-faucet.md

This file was deleted.

19 changes: 0 additions & 19 deletions docs/config/definition-properties-joystream.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,9 @@

| Property | Type | Required | Nullable | Defined by |
| :------------------------------------------ | :------- | :------- | :------------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [faucet](#faucet) | `object` | Required | cannot be null | [Youtube Sync node configuration](definition-properties-joystream-properties-faucet.md "https://joystream.org/schemas/youtube-synch/config#/properties/joystream/properties/faucet") |
| [app](#app) | `object` | Required | cannot be null | [Youtube Sync node configuration](definition-properties-joystream-properties-app.md "https://joystream.org/schemas/youtube-synch/config#/properties/joystream/properties/app") |
| [channelCollaborator](#channelcollaborator) | `object` | Required | cannot be null | [Youtube Sync node configuration](definition-properties-joystream-properties-joystream-channel-collaborator-used-for-syncing-the-content.md "https://joystream.org/schemas/youtube-synch/config#/properties/joystream/properties/channelCollaborator") |

## faucet

Joystream's faucet configuration (needed for captcha-free membership creation)

`faucet`

* is required

* Type: `object` ([Details](definition-properties-joystream-properties-faucet.md))

* cannot be null

* defined in: [Youtube Sync node configuration](definition-properties-joystream-properties-faucet.md "https://joystream.org/schemas/youtube-synch/config#/properties/joystream/properties/faucet")

### faucet Type

`object` ([Details](definition-properties-joystream-properties-faucet.md))

## app

Joystream Metaprotocol App specific configuration
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## url Type

`string`
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
## operationalApi Type

`object` ([Youtube Operational API (https://github.com/Benjamin-Loison/YouTube-operational-API) configuration](definition-properties-youtube-related-configuration-properties-youtube-operational-api-httpsgithubcombenjamin-loisonyoutube-operational-api-configuration.md))

# operationalApi Properties

| Property | Type | Required | Nullable | Defined by |
| :---------- | :------- | :------- | :------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [url](#url) | `string` | Required | cannot be null | [Youtube Sync node configuration](definition-properties-youtube-related-configuration-properties-youtube-operational-api-httpsgithubcombenjamin-loisonyoutube-operational-api-configuration-properties-url.md "https://joystream.org/schemas/youtube-synch/config#/properties/youtube/properties/operationalApi/properties/url") |

## url

URL of the Youtube Operational API server (for example: <http://localhost:8080>)

`url`

* is required

* Type: `string`

* cannot be null

* defined in: [Youtube Sync node configuration](definition-properties-youtube-related-configuration-properties-youtube-operational-api-httpsgithubcombenjamin-loisonyoutube-operational-api-configuration-properties-url.md "https://joystream.org/schemas/youtube-synch/config#/properties/youtube/properties/operationalApi/properties/url")

### url Type

`string`
27 changes: 27 additions & 0 deletions docs/config/definition-properties-youtube-related-configuration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
## youtube Type

`object` ([Youtube related configuration](definition-properties-youtube-related-configuration.md))

# youtube Properties

| Property | Type | Required | Nullable | Defined by |
| :-------------------------------- | :------- | :------- | :------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [operationalApi](#operationalapi) | `object` | Required | cannot be null | [Youtube Sync node configuration](definition-properties-youtube-related-configuration-properties-youtube-operational-api-httpsgithubcombenjamin-loisonyoutube-operational-api-configuration.md "https://joystream.org/schemas/youtube-synch/config#/properties/youtube/properties/operationalApi") |

## operationalApi

Youtube Operational API (<https://github.com/Benjamin-Loison/YouTube-operational-API>) configuration

`operationalApi`

* is required

* Type: `object` ([Youtube Operational API (https://github.com/Benjamin-Loison/YouTube-operational-API) configuration](definition-properties-youtube-related-configuration-properties-youtube-operational-api-httpsgithubcombenjamin-loisonyoutube-operational-api-configuration.md))

* cannot be null

* defined in: [Youtube Sync node configuration](definition-properties-youtube-related-configuration-properties-youtube-operational-api-httpsgithubcombenjamin-loisonyoutube-operational-api-configuration.md "https://joystream.org/schemas/youtube-synch/config#/properties/youtube/properties/operationalApi")

### operationalApi Type

`object` ([Youtube Operational API (https://github.com/Benjamin-Loison/YouTube-operational-API) configuration](definition-properties-youtube-related-configuration-properties-youtube-operational-api-httpsgithubcombenjamin-loisonyoutube-operational-api-configuration.md))
Loading
Loading