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
your Docker swarm box
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. 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 ENTRYPOINT_CONF_VERSION=v2
export ENTRYPOINT_MAILRELAY_CONF_VERSION=v1
export MSMTP_CONF_VERSION=v3
export NGINX_DEFAULT_CONF_VERSION=v1
abra_backup_app() {
_abra_backup_dir "app:/var/www/html/"

View File

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