parent
6c9fbf5983
commit
279965f611
@ -0,0 +1,47 @@ |
|||||||
|
server { |
||||||
|
listen 80; |
||||||
|
|
||||||
|
# Handle / to index.php |
||||||
|
index index.php; |
||||||
|
|
||||||
|
# Our server name |
||||||
|
server_name example.com; |
||||||
|
|
||||||
|
# Should be equal to post_max_size |
||||||
|
client_max_body_size 128M; |
||||||
|
|
||||||
|
# Where the code is located |
||||||
|
root /var/www/html/public; |
||||||
|
|
||||||
|
# Needed for Shopware install / update |
||||||
|
location /recovery/install { |
||||||
|
index index.php; |
||||||
|
try_files $uri /recovery/install/index.php$is_args$args; |
||||||
|
} |
||||||
|
|
||||||
|
location /recovery/update/ { |
||||||
|
location /recovery/update/assets { |
||||||
|
} |
||||||
|
if (!-e $request_filename){ |
||||||
|
rewrite . /recovery/update/index.php last; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
# Forward any not found file to index.php. Allows to have beautiful urls like /homemade-products/ |
||||||
|
location / { |
||||||
|
try_files $uri /index.php$is_args$args; |
||||||
|
} |
||||||
|
|
||||||
|
# Let php-fpm handle .php files |
||||||
|
location ~ \.php$ { |
||||||
|
fastcgi_split_path_info ^(.+\.php)(/.+)$; |
||||||
|
include fastcgi.conf; |
||||||
|
fastcgi_param HTTP_PROXY ""; |
||||||
|
fastcgi_buffers 8 16k; |
||||||
|
fastcgi_buffer_size 32k; |
||||||
|
fastcgi_read_timeout 300s; |
||||||
|
client_body_buffer_size 128k; |
||||||
|
fastcgi_pass unix:/run/php/php7.4-fpm.sock; |
||||||
|
http2_push_preload on; |
||||||
|
} |
||||||
|
} |
@ -1,2 +1,2 @@ |
|||||||
[home] |
[home] |
||||||
swserver ansible_host=YOUR_IP ansible_user=YOUR_USERNAME ansible_connection=ssh ansible_ssh_private_key_file=PATH_TO_KEY |
swserver ansible_host=192.168.0.223 ansible_user=rpolito ansible_connection=ssh ansible_ssh_private_key_file=/home/rpolito/.ssh/id_rsa |
Loading…
Reference in new issue