bcremer / shopware-with-nginx

Running shopware using NGINX
http://shopware.com
BSD 2-Clause "Simplified" License
95 stars 46 forks source link

Get rid of hardcoded ESD key in global/shopware.con #9

Open bcremer opened 9 years ago

bcremer commented 9 years ago

After merging PR #8 I was thinking about creating a variable for the esd key to get rid of the hardcoded value in global/shopware.con.

# sites-available/example.com.conf
set $shopware_esd_key '552211cce724117c3178e3d22bec532ec';`
# global/shopware.con
location ^~ /files/$shopware_esd_key/ {
    internal;
}

Unfortunately that seems not possible with plain Nginx config.

samuelvogel commented 9 years ago

Maybe it should be documented that this part actually is the ESD key from the Shopware config as a first step!