-
-
Notifications
You must be signed in to change notification settings - Fork 13
Configuration
Note: WIP. Please contact para in the Discord for corrections or missing information.
Here we will configure the application for our development environment.
This guide covers configurations that expose settings to the .env
file. This guide does not provide an overview for all configuration files.
File: config/api.php
These properties pertain to how to interact with the AnimeThemes API.
These properties represent the base URL that the API is served from.
Set this value if the API should be served from a subdomain such as api.animethemes.test
. Otherwise, leave this null.
Set this value if the API is served from the top-level domain such as animethemes.test/api
. Otherwise, leave this null.
File: config/audio.php
These properties pertain to how audio files are stored and served.
These properties define the filesystem disks where audio are hosted.
The primary filesystem that audio will be served from. This disk is also used for validation and reconciliation.
The list of filesystems that host audio. AnimeThemes hosts audio in each region where servers are hosted, so we need to perform storage operations against each configured filesystem. For local environments, this can be set to the same value as the default filesystem.
These properties represent the base URL that audio is served from.
Set this value if audio should be served from a subdomain such as a.animethemes.test
. Otherwise, leave this null.
Set this value if audio should be served from the top-level domain such as animethemes.test/audio
. Otherwise, leave this null.
These values represent the method by which audio is streamed.
At the time of writing, AnimeThemes supports streaming audio through php (response
) and nginx (nginx
). For local environments, response
should be sufficient. Nginx streaming is suitable for staging and production environments with higher amounts of traffic.
The location directive that nginx uses to handle the request and serve audio.
File: config/dump.php
These properties pertain to how dump files are stored and served.
These properties define the filesystem disks where dumps are hosted.
The filesystem that dumps will be served from.
These properties represent the base URL that dumps are served from.
Set this value if dumps should be served from a subdomain such as dump.animethemes.test
. Otherwise, leave this null.
Set this value if dumps should be served from the top-level domain such as animethemes.test/dump
. Otherwise, leave this null.
File: config/image.php
These properties pertain to how images are stored.
These properties define the filesystem disk where images are hosted.
The filesystem that images will be served from.
File: config/services.php
These properties store credentials for third party services such as Mailgun, Postmark, AWS and more. We should review this file if configuring external services.
Token used to identify AnimeThemes to MyAnimeList when making requests to the MAL API. This is used for backfilling actions. Unless work is being done for these actions, this can be left null
.
Bearer HTTP authentication scheme token used for hosting API calls. This is needed for the transparency page, but can be left null
unless work is being done specifically for this page.
File: config/video.php
These properties pertain to how video files are stored and served.
These properties define the filesystem disks where video are hosted.
The primary filesystem that video will be served from. This disk is also used for validation and reconciliation.
The list of filesystems that host video. AnimeThemes hosts video in each region where servers are hosted, so we need to perform storage operations against each configured filesystem. For local environments, this can be set to the same value as the default filesystem.
These properties represent the base URL that video is served from.
Set this value if video should be served from a subdomain such as v.animethemes.test
. Otherwise, leave this null.
Set this value if video should be served from the top-level domain such as animethemes.test/video
. Otherwise, leave this null.
These values represent the method by which video is streamed.
At the time of writing, AnimeThemes supports streaming video through php (response
) and nginx (nginx
). For local environments, response
should be sufficient. Nginx streaming is suitable for staging and production environments with higher amounts of traffic.
The location directive that nginx uses to handle the request and serve video.
File: config/web.php
These properties pertain to how to interact with web routes.
These properties represent the base URL that web routes are served from.
Set this value if web routes should be served from a subdomain such as app.animethemes.test
. Otherwise, leave this null.
Set this value if web routes should be served from the top-level domain such as animethemes.test/app
. Otherwise, leave this null.
These properties pertain to configuration for integration with animethemes-web.
These properties pertain to routes needed for actions that are handled by animethemes-web.
The address of the Login Page.
The address of the Reset Password Page.