diff --git a/app/views/docs/authentication-management.phtml b/app/views/docs/authentication-management.phtml index e9a08391..f5790bf5 100644 --- a/app/views/docs/authentication-management.phtml +++ b/app/views/docs/authentication-management.phtml @@ -204,7 +204,7 @@ let prefs = try await account.getPrefs()

Labels

- Labels are a good way to flag a user to grant them access to resources. + Labels are a good way to categorize a user to grant them access to resources. For example, a subscriber label can be added to a user once they've purchased a subscription.

@@ -414,7 +414,7 @@ var response = await users.UpdateLabels(

- For example, in a todo app, a user can create a team for one of their todo lists and invite another user to the team to grant the other user access. + For example, in a todo app, a user can create a team for one of their todo lists and invite another user to the team to grant the other user access. The invited user can accept the invitation to gain access. If the user's ever removed from the team, they'll lose access again.

diff --git a/app/views/docs/configuration.phtml b/app/views/docs/configuration.phtml index 9a0fc31f..d9c1817d 100644 --- a/app/views/docs/configuration.phtml +++ b/app/views/docs/configuration.phtml @@ -22,10 +22,143 @@

Configure GitHub App

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 create a GitHub app to enable this integration. + The GitHub app requires the following configurations.

-

You'll have to configure the following environment variables.

+

+ 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 localhost, you need to run a proxy like ngrok. +

+ +

Callback URL

+

+ GitHub will use callback URLs to redirect users back to Appwrite. + Set these callback URLs under Identifying and authorizing users. +

+ + + + + + + + + + + + + + +
URLs
http://[HOSTNAME_OR_IP]/v1/vcs/github/callback
http://[HOSTNAME_OR_IP]/v1/account/sessions/oauth2/callback/github/console
+ +

Post Installation

+

+ Check the Redirect on update box under the Post installation section. +

+ + +

Webhook

+

+ GitHub will notify Appwrite about events like new commits using webhooks. + Under Webhook, you need to check the Active checkbox. + You also need to set the Webhook URL as https://[HOSTNAME_OR_IP]/v1/vcs/github/events. +

+ +

+ If you're running Appwrite on localhost, 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 ngrok to make Appwrite accessible to GitHub. +

+ +

Repository Permissions

+

+ Configure these permissions under the Repository permission dropdown. +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
PermissionAccess
AdministrationRead and write
ChecksRead and write.
Commit StatusesRead and write
ContentsRead and write
IssuesRead and write
MetadataRead-only
Pull requestsRead and write
WebhooksRead and write
+ +

Account Permissions

+

+ Configure these permissions under the Account Permission dropdown. +

+ + + + + + + + + + + + + +
PermissionAccess
Email addressRead-only
+ +

Subscribe to Events

+

+ Select these under the Subscribe to events dropdown. +

+ + + + + + + + + + + + + + + +
Event
Pull requestPush
+ +

Environment Variables

+

After creating your app, you'll have to configure the following environment variables.

@@ -37,7 +170,7 @@ - + @@ -64,6 +197,14 @@

Learn more about environment variables

+

Update Existing GitHub Apps

+

+ 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 Settings > Integrations > Applications > Installed GitHub Apps > find your GitHub app > Configure. + You need to accept the new permissions so they're applied to your app. +

+

Configure Function Runtimes

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 @@

You can find a full list of supported runtimes on the environment variables page.

-

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 _APP_FUNCTIONS_TIMEOUT environment variable. This environment variable changes the configurable maximum but does not alter existing individual configurations.

+

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 _APP_FUNCTIONS_TIMEOUT environment variable. This environment variable changes the configurable maximum but does not alter existing configurations of individual functions.

-

Storage Adaptors

+

Storage Adapters

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 stores files on your server's local storage. If you expect large volumes of data or the need to have scalable data storage, you may choose to use a separate storage service.

-

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.

+

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.

-

You can select which storage adaptor to use by setting the _APP_STORAGE_DEVICE environment variable. Valid values are local, s3, dospaces, backblaze, linode and wasabi. Each storage adaptor requires its own set of additional environment variables to configure.

+

You can select which storage adapter to use by setting the _APP_STORAGE_DEVICE environment variable. Valid values are local, s3, dospaces, backblaze, linode, and wasabi. Each storage adapter requires its own set of additional environment variables to configure.

The maximum size for individual file uploads is controlled by the _APP_STORAGE_LIMIT environment variable, which defaults to 30 MB. See Environment Variables for more information.

-

Configure storage adaptors

+

Configure storage adapters

Applying Changes

After editing your docker-compose.yml or .env files, you will need to recreate your Appwrite stack by running the following compose command in your terminal.

diff --git a/app/views/docs/databases.phtml b/app/views/docs/databases.phtml index a6a8698a..70556884 100644 --- a/app/views/docs/databases.phtml +++ b/app/views/docs/databases.phtml @@ -11,7 +11,7 @@

Create Your Databases

- Appwrite's Databases Service allows you to create multiple databases. Each database can contain many collections and can be backed by a different database adaptor in future versions. + Appwrite's Databases Service allows you to create multiple databases. Each database can contain many collections and can be backed by a different database adapter in future versions.

diff --git a/app/views/docs/email-and-sms-templates.phtml b/app/views/docs/email-and-sms-templates.phtml index e685405f..f7ad0fc5 100644 --- a/app/views/docs/email-and-sms-templates.phtml +++ b/app/views/docs/email-and-sms-templates.phtml @@ -6,7 +6,7 @@ depending on the configured locale.

-

Custom SMTP server

+

Custom SMTP server

Appwrite Cloud has a default SMTP server to get you started. This SMTP server sends generic emails and doesn't allow customizing SMTP templates. diff --git a/app/views/docs/functions-deploy.phtml b/app/views/docs/functions-deploy.phtml index 934166ed..d17948fa 100644 --- a/app/views/docs/functions-deploy.phtml +++ b/app/views/docs/functions-deploy.phtml @@ -71,7 +71,7 @@

CLI

CLI Setup

-

Before you can deploy with the Appwrite CLI, make sure you've installed and initialized the CLI.

+

Before you can deploy with the Appwrite CLI, make sure you've installed and initialized the CLI.

To deploy with the Appwrite CLI, your function must be added to appwrite.json that tells the CLI where each function is stored. diff --git a/app/views/docs/functions-develop.phtml b/app/views/docs/functions-develop.phtml index 39617c17..20c78e1d 100644 --- a/app/views/docs/functions-develop.phtml +++ b/app/views/docs/functions-develop.phtml @@ -2637,32 +2637,32 @@ public class Main {

  • The parameter passed into functions has changed. req and res has been replaced by context, which contains new logger methods. - Learn about context. + Learn about context.
  • To improve privacy and logging reliability, we provide new context.log() and context.error() functions. You can no longer use native logging methods. - Learn about logging. + Learn about logging.
  • The old way of req.variables has been deprecated. You can now access variables passed into each function as environment variables. - Learn about environment variables. + Learn about environment variables.
  • The req object has been updated to use terminology consistent with typical HTTP concepts. You'll now find familiar concepts like headers, body, HTTP methods, and others. - Learn about request. + Learn about request.
  • The response object has been updated. You can now specify headers, as well as use new methods like return redirects or empty responses. - Learn about response. + Learn about response.
  • Now, you must return a response such as return context.res.send(""). This prevents confusing errors when functions are terminated prematurely before a response is sent. - Learn about response. + Learn about response.
  • Some variables about how a function was triggered are now found in the context.req object as headers. diff --git a/app/views/docs/migrations-firebase.phtml b/app/views/docs/migrations-firebase.phtml index 2c351d59..78f7bb87 100644 --- a/app/views/docs/migrations-firebase.phtml +++ b/app/views/docs/migrations-firebase.phtml @@ -143,12 +143,13 @@ Click Add Key and select Create new key. Select JSON as the key type and click Create. This will download a JSON file to your computer.
  • - Upload the JSON file to Appwrite and follow the migration wizard. + Upload the JSON file to Appwrite and follow the migration wizard to select which resource you need to migrate.
  • - After completing the migration wizard, migration will begin. Return to step 4 of the migration steps. + After completing the migration wizard, migration will begin. This will run in the background, you can close the browser..
  • - Finally, add the platforms for your Web, Flutter, Android, and iOS apps. + Finally, add the platforms for your Web, Flutter, Android, and iOS apps. + Also remember to add appropriate permissions to the migrated resources to protect user data and privacy.
  • \ No newline at end of file diff --git a/app/views/docs/self-hosting.phtml b/app/views/docs/self-hosting.phtml index 2f6c39fd..3a110d77 100644 --- a/app/views/docs/self-hosting.phtml +++ b/app/views/docs/self-hosting.phtml @@ -121,7 +121,7 @@
    _APP_VCS_GITHUB_APP_NAMEName of your GitHub app. This value should be set to your GitHub application's URL.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.
    _APP_VCS_GITHUB_PRIVATE_KEY

    Next Steps

    -

    Self-hosting Appwrite gives you more configurable options. You can customize Appwrite with your choice of S3 compatible storage adaptors, email and SMS providers, functions runtimes, and more.

    +

    Self-hosting Appwrite gives you more configurable options. You can customize Appwrite with your choice of S3 compatible storage adapters, email and SMS providers, functions runtimes, and more.

    Learn about configuring Appwrite