-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Adds GraphQL #602
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
Merged
Adds GraphQL #602
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
0a2a72f
feat: add hasura/examples/configuration
Naramsim 13c0712
chore: add hasura make commands
Naramsim 3a4711c
Merge branch 'master' into graphql
Naramsim 27fb1eb
fix: use correct folder
Naramsim a59b1e0
ignore secrets
Naramsim 875f065
feat: add graphiql
Naramsim 4d355f7
docs: add examples
Naramsim 1995abb
fix: lower version
Naramsim c27585d
fix: allow all hosts
Naramsim ef6f7db
feat: update hasura
Naramsim 2909877
chore: bump graphiql
Naramsim b296167
docs: add comments
Naramsim 21c959e
feat: allow ssl
Naramsim af8c80d
docs: add example ssl config
Naramsim 384e86e
feat: tune nginx config
Naramsim e8d0008
perf: limit concurrent connections
Naramsim 480b77a
refactor: rename folder
Naramsim 26c1036
refactor: use correct name
Naramsim 120717a
feat: align gunicorn port to the one of compose
Naramsim e967a0e
docs: update readme with graphql info/move section
Naramsim f4b4655
perf: disable debug for nginx
Naramsim 32dafeb
Merge branch 'master' into graphql
Naramsim 7714b57
refactor: add newline
Naramsim File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -7,3 +7,6 @@ db.* | |
| venv* | ||
| node_modules | ||
| .vscode | ||
| .env | ||
| Resources/nginx/ssl/* | ||
| !Resources/nginx/ssl/*.sample.* | ||
This file contains hidden or 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 hidden or 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 hidden or 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,31 @@ | ||
| version: '2.4' | ||
| services: | ||
| db: | ||
| environment: | ||
| POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}" | ||
| POSTGRES_USER: "${POSTGRES_USER}" | ||
|
|
||
| app: | ||
| env_file: .env | ||
|
|
||
| web: | ||
| volumes: | ||
| - graphiql:/public-console:ro | ||
|
|
||
| graphql-engine: | ||
| environment: | ||
| HASURA_GRAPHQL_DATABASE_URL: "postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/pokeapi" | ||
| HASURA_GRAPHQL_ADMIN_SECRET: "${HASURA_GRAPHQL_ADMIN_SECRET}" | ||
|
|
||
| graphiql: | ||
| image: pokeapi/graphiql:1.0.1 | ||
| command: sh -c 'cp -a /app/static/. /transfer/ && tail -f /etc/passwd' | ||
| volumes: | ||
| - graphiql:/transfer | ||
| depends_on: | ||
| - graphql-engine | ||
|
|
||
| volumes: | ||
| graphiql: | ||
|
|
||
| # docker-compose -f docker-compose.yml -f Resources/compose/docker-compose-graphql.yml up |
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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,14 @@ | ||
| # Copy this file to ssl.conf, add certificate and private key to enable ssl | ||
|
|
||
| listen 443 ssl http2; | ||
| listen [::]:443 ssl http2; | ||
|
|
||
| ssl_certificate /ssl/cert.cer; | ||
| ssl_certificate_key /ssl/key.key; | ||
| ssl_session_timeout 1d; | ||
| ssl_session_cache shared:MozSSL:10m; | ||
| ssl_session_tickets off; | ||
|
|
||
| ssl_protocols TLSv1.2 TLSv1.3; | ||
| ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384; | ||
| ssl_prefer_server_ciphers off; |
This file contains hidden or 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,11 @@ | ||
| module.exports = { | ||
| client: { | ||
| service: { | ||
| name: "pokeapi", | ||
| url: "http://localhost:8080/v1/graphql", | ||
| headers: { | ||
| "x-hasura-admin-secret": "pokemon", | ||
| }, | ||
| }, | ||
| }, | ||
| }; | ||
This file contains hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.