another attempt

This commit is contained in:
Mayel 2021-07-14 13:57:41 +02:00
parent 826ad5f0d2
commit c86c5329b6
3 changed files with 6 additions and 6 deletions

View File

@ -25,7 +25,7 @@ Coöp Cloud + [PHP](https://php.org) + MariaDB + Nginx = 🥳
4. `abra app YOURAPPDOMAIN config` - be sure to change `$DOMAIN` to something that resolves to 4. `abra app YOURAPPDOMAIN config` - be sure to change `$DOMAIN` to something that resolves to
your Docker swarm box your Docker swarm box
5. `abra app YOURAPPDOMAIN deploy` 5. `abra app YOURAPPDOMAIN deploy`
6. Copy your site files using something like: `abra app YOURAPPDOMAIN cp index.html app:/var/www/html/` 6. Copy your site files using something like: `abra app YOURAPPDOMAIN cp index.html app:/var/www/html/` or if you want to copy an entire directory: `tar cf - ./mysite | abra app YOURAPPDOMAIN cp - app:/var/www/html/`
6. Use [restore functionality](https://docs.coopcloud.tech/backup-restore/) to import a SQL file into the db 6. Use [restore functionality](https://docs.coopcloud.tech/backup-restore/) to import a SQL file into the db
6. Open the configured domain in your browser to check all is good 6. Open the configured domain in your browser to check all is good

View File

@ -1,8 +1,8 @@
export NGINX_DEFAULT_CONF_VERSION=v3
export PHP_UPLOADS_CONF_VERSION=v3 export PHP_UPLOADS_CONF_VERSION=v3
export ENTRYPOINT_CONF_VERSION=v2 export ENTRYPOINT_CONF_VERSION=v2
export ENTRYPOINT_MAILRELAY_CONF_VERSION=v1 export ENTRYPOINT_MAILRELAY_CONF_VERSION=v1
export MSMTP_CONF_VERSION=v3 export MSMTP_CONF_VERSION=v3
export NGINX_DEFAULT_CONF_VERSION=v1
abra_backup_app() { abra_backup_app() {
_abra_backup_dir "app:/var/www/html/" _abra_backup_dir "app:/var/www/html/"

View File

@ -9,8 +9,9 @@ server {
location / { location / {
root /var/www/html; root /var/www/html;
index index.html index.htm; index index.html index.htm index.php;
try_files $uri $uri/ $uri.html; gzip_static on;
try_files $uri $uri/ $uri.html $uri.php index.php?$query_string /index.php?$query_string;
} }
#error_page 404 /404.html; #error_page 404 /404.html;
@ -31,8 +32,7 @@ server {
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
# #
location ~ \.php$ { location ~ \.php$ {
try_files $uri = 404; try_files $uri =404;
#root html;
fastcgi_pass app:9000; fastcgi_pass app:9000;
fastcgi_index index.php; fastcgi_index index.php;
fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_split_path_info ^(.+\.php)(/.+)$;