Skip to content

Commit

Permalink
feat: use upstream to be able to bypass the need of a env variable in…
Browse files Browse the repository at this point in the history
… the includes file

Related: SHOPWARE-124
  • Loading branch information
sd-lueckel committed Jan 10, 2025
1 parent ba64e47 commit ef83b63
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 1 addition & 2 deletions nginx/etc/nginx/includes/shopware6
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
include includes/defaults;


root /var/www/public;

location ~ ^/(theme|media|thumbnail|bundles|css|fonts|js|recovery|sitemap)/ {
Expand Down Expand Up @@ -61,5 +60,5 @@ location ~ \.php$ {
proxy_read_timeout 300s;
send_timeout 300s;
client_body_buffer_size 128k;
fastcgi_pass ${FPM_BACKEND};
fastcgi_pass shop_backend;
}
4 changes: 4 additions & 0 deletions nginx/examples/shopware6.conf.template
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
upstream shop_backend {
server ${FPM_BACKEND};
}

server {
listen 80;

Expand Down

0 comments on commit ef83b63

Please sign in to comment.