This repository was archived by the owner on Sep 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 114
Add github app config information #424
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
0401444
Add github app config information
b14f78b
Hack more closely packed rows
96eb089
fixes some links
24ab17a
Fix some bits missed in the firebase docs
f27bebb
Add steps for configuration
7093dce
update github config instruction styling
e332cef
Fix some spelling errors
eab646c
add comments about using ngrok or another proxy
3fc7718
Update app/views/docs/configuration.phtml
3955c3f
Apply suggestions from code review
d848ac8
add a section about existing apps
0a93ad6
Update app/views/docs/configuration.phtml
6c37c35
Update app/views/docs/configuration.phtml
be0e83b
Update app/views/docs/configuration.phtml
7948cdf
Hyperlink ngrok
35c58f0
Update app/views/docs/configuration.phtml
8e8153f
Adaptor -> Adapter miss spelt
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
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 |
|---|---|---|
|
|
@@ -22,10 +22,143 @@ | |
| <h2><a href="#git" id="git">Configure GitHub App</a></h2> | ||
| <p> | ||
| Appwrite supports automatic deployments through Git integration. | ||
| In order for Appwrite to access your repos, you must configure a GitHub app to enable this integration. | ||
| In order for Appwrite to access your repos, you must <a href="https://docs.github.com/en/apps/creating-github-apps/about-creating-github-apps/about-creating-github-apps" target="_blank" rel="noopener">create a GitHub app</a> to enable this integration. | ||
| The GitHub app requires the following configurations. | ||
| </p> | ||
|
|
||
| <p>You'll have to configure the following environment variables.</p> | ||
| <p> | ||
| For automatic Git deployment to work, Appwrite needs to receive communication from GitHub, this means your Appwrite project must be accessible on the internet. | ||
| If you're running on <code>localhost</code>, you need to run a proxy like <a href="https://ngrok.com/" target="_blank" rel="noopener">ngrok</a>. | ||
| </p> | ||
|
|
||
| <h3><a href="#callback" id="callback">Callback URL</a></h3> | ||
| <p> | ||
| GitHub will use <b>callback URLs</b> to redirect users back to Appwrite. | ||
| Set these callback URLs under <b>Identifying and authorizing users</b>. | ||
| </p> | ||
| <table class="full"> | ||
| <thead> | ||
| <tr> | ||
| <td>URLs</td> | ||
| </tr> | ||
| </thead> | ||
| <tbody> | ||
| <tr> | ||
| <td><code>http://[HOSTNAME_OR_IP]/v1/vcs/github/callback</code></td> | ||
| </tr> | ||
| <tr> | ||
| <td><code>http://[HOSTNAME_OR_IP]/v1/account/sessions/oauth2/callback/github/console</code></td> | ||
| </tr> | ||
| </tbody> | ||
| </table> | ||
|
|
||
| <h3><a href="#post-install" id="post-install">Post Installation</a></h3> | ||
| <p> | ||
| Check the <b>Redirect on update</b> box under the <b>Post installation</b> section. | ||
christyjacob4 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| </p> | ||
|
|
||
|
|
||
| <h3><a href="#github-webhooks" id="github-webhooks">Webhook</a></h3> | ||
| <p> | ||
| GitHub will notify Appwrite about events like new commits using webhooks. | ||
| Under <b>Webhook</b>, you need to check the <b>Active</b> checkbox. | ||
| You also need to set the <b>Webhook URL</b> as <code>https://[HOSTNAME_OR_IP]/v1/vcs/github/events</code>. | ||
| </p> | ||
|
|
||
| <p> | ||
| If you're running Appwrite on <code>localhost</code>, GitHub can't send requests to Appwrite through webhooks and automatic deployments won't work. | ||
| You'll need host Appwrite on a server or use a proxy like <a href="https://ngrok.com/" target="_blank" rel="noopener">ngrok</a> to make Appwrite accessible to GitHub. | ||
| </p> | ||
|
|
||
| <h3><a href="#repository-permission" id="repository-permission">Repository Permissions</a></h3> | ||
| <p> | ||
| Configure these permissions under the <b>Repository permission</b> dropdown. | ||
| </p> | ||
| <table class="full"> | ||
| <thead> | ||
| <tr> | ||
| <td>Permission</td> | ||
| <td>Access</td> | ||
| </tr> | ||
| </thead> | ||
| <tbody> | ||
| <tr> | ||
| <td>Administration</td> | ||
| <td>Read and write</td> | ||
christyjacob4 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| </tr> | ||
| <tr> | ||
| <td>Checks</td> | ||
| <td>Read and write.</td> | ||
| </tr> | ||
| <tr> | ||
| <td>Commit Statuses</td> | ||
| <td>Read and write</td> | ||
| </tr> | ||
| <tr> | ||
| <td>Contents</td> | ||
| <td>Read and write</td> | ||
| </tr> | ||
| <tr> | ||
| <td>Issues</td> | ||
| <td>Read and write</td> | ||
| </tr> | ||
| <tr> | ||
| <td>Metadata</td> | ||
| <td>Read-only</td> | ||
| </tr> | ||
| <tr> | ||
| <td>Pull requests</td> | ||
| <td>Read and write</td> | ||
| </tr> | ||
| <tr> | ||
| <td>Webhooks</td> | ||
| <td>Read and write</td> | ||
| </tr> | ||
| </tbody> | ||
| </table> | ||
|
|
||
| <h3><a href="#account-permission" id="account-permission">Account Permissions</a></h3> | ||
| <p> | ||
| Configure these permissions under the <b>Account Permission</b> dropdown. | ||
| </p> | ||
| <table class="full"> | ||
| <thead> | ||
| <tr> | ||
| <td>Permission</td> | ||
| <td>Access</td> | ||
| </tr> | ||
| </thead> | ||
| <tbody> | ||
| <tr> | ||
| <td>Email address</td> | ||
| <td>Read-only</td> | ||
| </tr> | ||
| </tbody> | ||
| </table> | ||
|
|
||
| <h3><a href="#subscribe-events" id="subscribe-events">Subscribe to Events</a></h3> | ||
| <p> | ||
| Select these under the <b>Subscribe to events</b> dropdown. | ||
| </p> | ||
| <table class="full"> | ||
| <thead> | ||
| <tr> | ||
| <td>Event</td> | ||
| <td></td> | ||
| <td></td> | ||
christyjacob4 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| </tr> | ||
| </thead> | ||
| <tbody> | ||
| <tr> | ||
| <td>Pull request</td> | ||
| <td>Push</td> | ||
| <td></td> | ||
| </tr> | ||
| </tbody> | ||
| </table> | ||
|
|
||
| <h3><a href="#github-variables" id="github-variables">Environment Variables</a></h3> | ||
| <p>After creating your app, you'll have to configure the following environment variables.</p> | ||
|
|
||
| <table class="full"> | ||
| <thead> | ||
|
|
@@ -37,7 +170,7 @@ | |
| <tbody> | ||
| <tr> | ||
| <td>_APP_VCS_GITHUB_APP_NAME</td> | ||
| <td>Name of your GitHub app. This value should be set to your GitHub application's URL.</td> | ||
| <td>Name of your GitHub app. This is the display name you'll see on GitHub and it will be visible in your GitHub app's URL.</td> | ||
| </tr> | ||
| <tr> | ||
| <td>_APP_VCS_GITHUB_PRIVATE_KEY</td> | ||
|
|
@@ -64,6 +197,14 @@ | |
|
|
||
| <p><a href="/docs/environment-variables"><i class="icon-angle-circled-right margin-start-negative-tiny margin-end-tiny"></i> Learn more about environment variables</a></p> | ||
|
|
||
| <h3><a href="#existing-apps" id="existing-apps">Update Existing GitHub Apps</a></h3> | ||
| <p> | ||
| There are additional steps if you're updating permissions in existing GitHub apps. | ||
| Every time you update your GitHub app's permissions, GitHub will prompt you to review the changes. | ||
| You will receive an email and you'll find a prompt under <b>Settings</b> > <b>Integrations</b> > <b>Applications</b> > <b>Installed GitHub Apps</b> > find your GitHub app > <b>Configure</b>. | ||
| You need to accept the new permissions so they're applied to your app. | ||
| </p> | ||
|
|
||
| <h2><a href="#functions" id="functions">Configure Function Runtimes</a></h2> | ||
| <p> | ||
| Not all function runtimes are enabled by default. Enable the runtimes that you need and disable unused runtimes to save disk space on your server. | ||
|
|
@@ -80,18 +221,18 @@ | |
|
|
||
| <p>You can find a full list of supported runtimes on the <a href="/docs/environment-variables#functions">environment variables</a> page.</p> | ||
|
|
||
| <p>You can also configure the maximum timeout that can be set on individual Appwrite functions. The maximum configurable timeout can be increased by changing the <code>_APP_FUNCTIONS_TIMEOUT</code> environment variable. This environment variable changes the configurable maximum but does not alter existing individual configurations.</p> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
| <p>You can also configure the maximum timeout that can be set on individual Appwrite functions. The maximum configurable timeout can be increased by changing the <code>_APP_FUNCTIONS_TIMEOUT</code> environment variable. This environment variable changes the configurable maximum but does not alter existing configurations of individual functions.</p> | ||
|
|
||
| <h2><a href="#storage" id="storage">Storage Adaptors</a></h2> | ||
| <h2><a href="#storage" id="storage">Storage Adapters</a></h2> | ||
| <p>Appwrite's Storage Service can be configured to store files locally, or with self-hosted and cloud storage services. By default, Appwrite's Storage Service <b>stores files on your server's local storage</b>. If you expect large volumes of data or the need to have scalable data storage, you may choose to use a separate storage service.</p> | ||
|
|
||
| <p>Appwrite supports AWS S3, Digital Ocean Spaces, Backblaze, Akamai Object Storage, and Wasabi as storage adaptors. Some of these services can be self-hosted, just like Appwrite.</p> | ||
| <p>Appwrite supports AWS S3, Digital Ocean Spaces, Backblaze, Akamai Object Storage, and Wasabi as storage adapters. Some of these services can be self-hosted, just like Appwrite.</p> | ||
|
|
||
| <p>You can select which storage adaptor to use by setting the <code>_APP_STORAGE_DEVICE</code> environment variable. Valid values are <code>local</code>, <code>s3</code>, <code>dospaces</code>, <code>backblaze</code>, <code>linode</code> and <code>wasabi</code>. Each storage adaptor requires its own set of additional environment variables to configure.</p> | ||
| <p>You can select which storage adapter to use by setting the <code>_APP_STORAGE_DEVICE</code> environment variable. Valid values are <code>local</code>, <code>s3</code>, <code>dospaces</code>, <code>backblaze</code>, <code>linode</code>, and <code>wasabi</code>. Each storage adapter requires its own set of additional environment variables to configure.</p> | ||
|
|
||
| <p>The maximum size for individual file uploads is controlled by the <code>_APP_STORAGE_LIMIT</code> environment variable, which defaults to 30 MB. See <a href="/docs/environment-variables#storage">Environment Variables</a> for more information.</p> | ||
|
|
||
| <p><a href="/docs/environment-variables#storage"><i class="icon-angle-circled-right margin-start-negative-tiny margin-end-tiny"></i> Configure storage adaptors</a></p> | ||
| <p><a href="/docs/environment-variables#storage"><i class="icon-angle-circled-right margin-start-negative-tiny margin-end-tiny"></i> Configure storage adapters</a></p> | ||
|
|
||
| <h2><a href="#apply-changes" id="apply-changes">Applying Changes</a></h2> | ||
| <p>After editing your <code>docker-compose.yml</code> or <code>.env</code> files, you will need to recreate your Appwrite stack by running the following compose command in your terminal.</p> | ||
|
|
||
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
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
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.