feat(): nginx config

pull/80/head
Magicalex 2021-03-16 19:42:22 +01:00
parent 6c025b0175
commit 6d856963e3
No known key found for this signature in database
GPG Key ID: A89B48B1788C3CB5
3 changed files with 37 additions and 111 deletions

View File

@ -10,10 +10,8 @@
- **latest** [(Dockerfile)](https://github.com/mondediefr/docker-flarum/blob/master/Dockerfile) - **latest** [(Dockerfile)](https://github.com/mondediefr/docker-flarum/blob/master/Dockerfile)
- **stable** [(Dockerfile)](https://github.com/mondediefr/docker-flarum/blob/master/Dockerfile) - **stable** [(Dockerfile)](https://github.com/mondediefr/docker-flarum/blob/master/Dockerfile)
- **0.1.0-beta.16** [(Dockerfile)](https://github.com/mondediefr/docker-flarum/blob/0.1.0-beta.16/Dockerfile)
- **0.1.0-beta.15** [(Dockerfile)](https://github.com/mondediefr/docker-flarum/blob/0.1.0-beta.15/Dockerfile) - **0.1.0-beta.15** [(Dockerfile)](https://github.com/mondediefr/docker-flarum/blob/0.1.0-beta.15/Dockerfile)
- **0.1.0-beta.14.1** [(Dockerfile)](https://github.com/mondediefr/docker-flarum/blob/0.1.0-beta.14.1/Dockerfile)
- **0.1.0-beta.14** [(Dockerfile)](https://github.com/mondediefr/docker-flarum/blob/0.1.0-beta.14/Dockerfile)
- **0.1.0-beta.13** [(Dockerfile)](https://github.com/mondediefr/docker-flarum/blob/0.1.0-beta.13/Dockerfile)
### Features ### Features

View File

@ -1,5 +1,39 @@
# Guide for upgrade your flarum container # Guide for upgrade your flarum container
### Upgrade to v0.1.0-beta.16 from v0.1.0-beta.15
:warning: Backup your database, config.php, composer.lock and assets folder
:warning: Disable all 3rd party extensions prior to upgrading in panel admin.
1 - Update your docker-compose file, see an example [here](https://github.com/mondediefr/docker-flarum/tree/master#2---docker-composeyml)
```yml
version: "3"
services:
flarum:
image: mondedie/flarum:0.1.0-beta.16
...
```
2 - Pull the last docker images
```sh
docker pull mondedie/flarum:0.1.0-beta.16
docker-compose stop flarum
docker-compose rm flarum
docker-compose up -d flarum
```
3 - Updating your database and removing old assets & extensions
```sh
docker exec -ti flarum php /flarum/app/flarum migrate
docker exec -ti flarum php /flarum/app/flarum cache:clear
```
After that your upgrade is finish. :tada: :tada:
### Upgrade to v0.1.0-beta.15 from v0.1.0-beta.14.1 ### Upgrade to v0.1.0-beta.15 from v0.1.0-beta.14.1
:warning: Backup your database, config.php, composer.lock and assets folder :warning: Backup your database, config.php, composer.lock and assets folder
@ -33,109 +67,3 @@ docker exec -ti flarum php /flarum/app/flarum cache:clear
``` ```
After that your upgrade is finish. :tada: :tada: After that your upgrade is finish. :tada: :tada:
### Upgrade to v0.1.0-beta.14.1 from v0.1.0-beta.14
:warning: Backup your database, config.php, composer.lock and assets folder
:warning: Disable all 3rd party extensions prior to upgrading in panel admin.
1 - Update your docker-compose file, see an example [here](https://github.com/mondediefr/docker-flarum/tree/master#2---docker-composeyml)
```yml
version: "3"
services:
flarum:
image: mondedie/flarum:0.1.0-beta.14.1
...
```
2 - Pull the last docker images
```sh
docker pull mondedie/flarum:0.1.0-beta.14.1
docker-compose stop flarum
docker-compose rm flarum
docker-compose up -d flarum
```
3 - Updating your database and removing old assets & extensions
```sh
docker exec -ti flarum php /flarum/app/flarum migrate
docker exec -ti flarum php /flarum/app/flarum cache:clear
```
After that your upgrade is finish. :tada: :tada:
### Upgrade to v0.1.0-beta.14 from v0.1.0-beta.13
:warning: Backup your database, config.php, composer.lock and assets folder
:warning: Disable all 3rd party extensions prior to upgrading in panel admin.
1 - Update your docker-compose file, see an example [here](https://github.com/mondediefr/docker-flarum/tree/master#2---docker-composeyml)
```yml
version: "3"
services:
flarum:
image: mondedie/flarum:0.1.0-beta.14
...
```
2 - Pull the last docker images
```sh
docker pull mondedie/flarum:0.1.0-beta.14
docker-compose stop flarum
docker-compose rm flarum
docker-compose up -d flarum
```
3 - Updating your database and removing old assets & extensions
```sh
docker exec -ti flarum extension remove flarum/auth-facebook
docker exec -ti flarum extension remove flarum/auth-github
docker exec -ti flarum extension remove flarum/auth-twitter
docker exec -ti flarum php /flarum/app/flarum migrate
docker exec -ti flarum php /flarum/app/flarum cache:clear
docker exec -ti flarum extension require fof/oauth
```
After that your upgrade is finish. :tada: :tada:
### Upgrade to v0.1.0-beta.13 from v0.1.0-beta.12
:warning: Backup your database, config.php, composer.lock and assets folder
:warning: Disable all 3rd party extensions prior to upgrading in panel admin.
1 - Update your docker-compose file, see an example [here](https://github.com/mondediefr/docker-flarum/tree/master#2---docker-composeyml)
```yml
version: "3"
services:
flarum:
image: mondedie/flarum:0.1.0-beta.13
...
```
2 - Pull the last docker images
```sh
docker pull mondedie/flarum:0.1.0-beta.13
docker-compose stop flarum
docker-compose rm flarum
docker-compose up -d flarum
```
3 - Updating your database and removing old assets
```sh
docker exec -ti flarum php /flarum/app/flarum migrate
docker exec -ti flarum php /flarum/app/flarum cache:clear
```
After that your upgrade is finish. :tada: :tada:

View File

@ -43,9 +43,9 @@ http {
# PHP Backend # PHP Backend
# -------------------------------------- # --------------------------------------
location ~ \.php$ { location ~* \.php$ {
try_files $uri =404; try_files $uri =404;
include /etc/nginx/fastcgi_params; include fastcgi_params;
fastcgi_split_path_info ^(.+\.php)(/.*)$; fastcgi_split_path_info ^(.+\.php)(/.*)$;
fastcgi_index index.php; fastcgi_index index.php;
fastcgi_pass unix:/run/php/php8-fpm.sock; fastcgi_pass unix:/run/php/php8-fpm.sock;