Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ It can be upgraded by editing the Dockerfile in the bin folder (please open a PR

* Clone this repository on your local computer, on your edgebox working folder (eg: ~/edgebox/)
* configure .env as needed
* Run the `docker-compose up -d`.
* Run the `docker compose up -d`.

```shell
git clone https://github.com/edgebox-iot/api.git
cd api/
cp sample.env .env
// modify sample.env as needed
docker-compose up -d
docker compose up -d
// visit localhost
```

Expand Down Expand Up @@ -115,14 +115,14 @@ By default following modules are enabled.
* headers

> If you want to enable more modules, just update `./bin/webserver/Dockerfile`. You can also generate a PR and we will merge if seems good for general purpose.
> You[![CI](https://github.com/edgebox-iot/api/actions/workflows/ci.yml/badge.svg)](https://github.com/edgebox-iot/api/actions/workflows/ci.yml) have to rebuild the docker image by running `docker-compose build` and restart the docker containers.
> You[![CI](https://github.com/edgebox-iot/api/actions/workflows/ci.yml/badge.svg)](https://github.com/edgebox-iot/api/actions/workflows/ci.yml) have to rebuild the docker image by running `docker compose build` and restart the docker containers.

#### Connect via SSH

You can connect to web server using `docker-compose exec` command to perform various operation on it. Use below command to login to container via ssh.
You can connect to web server using `docker compose exec` command to perform various operation on it. Use below command to login to container via ssh.

```shell
docker-compose exec webserver bash
docker compose exec webserver bash
```

### PHP Extensions
Expand All @@ -144,7 +144,7 @@ By default following extensions are installed.
* gd

> If you want to install more extensions, just update `./Dockerfile`. You can also generate a PR and it will be merged if it seems good for general purpose.
> You have to rebuild the docker image by running `docker-compose build` and restart the docker containers.
> You have to rebuild the docker image by running `docker compose build` and restart the docker containers.

## phpMyAdmin

Expand Down
9 changes: 9 additions & 0 deletions src/config/packages/framework.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,19 @@ framework:

# Enables session support. Note that the session will ONLY be started if you read or write from it.
# Remove or comment this section to explicitly disable session support.
trusted_proxies: 172.19.0.0/16,172.17.0.0/16,10.0.0.0/8,192.168.0.0/16,127.0.0.1
trusted_headers:
- x-forwarded-for
- x-forwarded-proto
- x-forwarded-port

session:
handler_id: null
cookie_secure: auto
cookie_samesite: lax
name: edgebox_session
cookie_path: /
cookie_httponly: true
storage_factory_id: session.storage.factory.native

#esi: true
Expand Down
Loading
Loading