mirror of
https://github.com/ConnectedHumber/Air-Quality-Web
synced 2024-11-22 06:23:01 +00:00
README: Add extra web server instructions
This commit is contained in:
parent
1d53e06b26
commit
ef55b58ab1
1 changed files with 7 additions and 0 deletions
|
@ -62,12 +62,19 @@ This will take longer, as it causes the build system to additionally minify the
|
||||||
|
|
||||||
|
|
||||||
### Configuration
|
### Configuration
|
||||||
|
#### Web server
|
||||||
|
Configure your php-enabled web server to:
|
||||||
|
- Serve the root directory of this repository in PHP
|
||||||
|
- Block access to the `data` directory (created on first page load)
|
||||||
|
|
||||||
|
#### Application
|
||||||
Some configuration must be done before the application is ready for use.
|
Some configuration must be done before the application is ready for use.
|
||||||
|
|
||||||
The first time `api.php` is called from a browser, it will create a new blank configuration file at `data/settings.toml`, if it doesn't already exist. See the `settings.default.toml` file in this repository for a list of configurable settings, but do **not** edit `settings.default.toml`!
|
The first time `api.php` is called from a browser, it will create a new blank configuration file at `data/settings.toml`, if it doesn't already exist. See the `settings.default.toml` file in this repository for a list of configurable settings, but do **not** edit `settings.default.toml`!
|
||||||
|
|
||||||
Instead, enter your configuration details into `data/settings.toml`, which overrides `settings.default.toml`. In particular, you'll probably want to change the settings under the `[database]` header - but ensure you give the entire file a careful read.
|
Instead, enter your configuration details into `data/settings.toml`, which overrides `settings.default.toml`. In particular, you'll probably want to change the settings under the `[database]` header - but ensure you give the entire file a careful read.
|
||||||
|
|
||||||
|
|
||||||
## API
|
## API
|
||||||
The server-side API is accessed through `api.php`, and supports a number of GET parameters. The most important of these is the `action` parameter, Which determines what the API will do. The following values are supported:
|
The server-side API is accessed through `api.php`, and supports a number of GET parameters. The most important of these is the `action` parameter, Which determines what the API will do. The following values are supported:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue