mirror of
https://github.com/gilbN/theme.park.git
synced 2024-11-19 17:42:32 +01:00
deploy: 6a0a2f7517
This commit is contained in:
parent
9cdfc8d304
commit
761f3c602e
@ -9,10 +9,10 @@ server {
|
||||
|
||||
location / {
|
||||
sub_filter_types *;
|
||||
sub_filter 'https://theme-park.dev' $scheme://TP_DOMAIN;
|
||||
sub_filter 'http://theme-park.dev' $scheme://TP_DOMAIN;
|
||||
sub_filter 'https://develop.theme-park.dev' $scheme://TP_DOMAIN;
|
||||
sub_filter 'http://develop.theme-park.dev' $scheme://TP_DOMAIN;
|
||||
sub_filter 'https://theme-park.dev' https://TP_DOMAIN;
|
||||
sub_filter 'http://theme-park.dev' http://TP_DOMAIN;
|
||||
sub_filter 'https://develop.theme-park.dev' https://TP_DOMAIN;
|
||||
sub_filter 'http://develop.theme-park.dev' http://TP_DOMAIN;
|
||||
sub_filter_once off;
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
|
@ -17,7 +17,16 @@ if [[ -z ${TP_DOMAIN} ]]; then
|
||||
TP_DOMAIN='$http_host'
|
||||
fi
|
||||
|
||||
sed -i "s/TP_DOMAIN;/${TP_DOMAIN}; /g" /defaults/default
|
||||
if [[ -z ${TP_SCHEME} ]]; then
|
||||
echo 'No scheme set, defaulting to https'
|
||||
TP_SCHEME='https'
|
||||
fi
|
||||
|
||||
DEFAULT='/defaults/default'
|
||||
sed -i "s/sub_filter 'https:\/\/theme-park.dev' https:\/\/TP_DOMAIN;/sub_filter 'https:\/\/theme-park.dev' ${TP_SCHEME}:\/\/${TP_DOMAIN}; /g" ${DEFAULT}
|
||||
sed -i "s/sub_filter 'http:\/\/theme-park.dev' http:\/\/TP_DOMAIN;/sub_filter 'http:\/\/theme-park.dev' ${TP_SCHEME}:\/\/${TP_DOMAIN}; /g" ${DEFAULT}
|
||||
sed -i "s/sub_filter 'https:\/\/develop.theme-park.dev' https:\/\/TP_DOMAIN;/sub_filter 'https:\/\/develop.theme-park.dev' ${TP_SCHEME}:\/\/${TP_DOMAIN}; /g" ${DEFAULT}
|
||||
sed -i "s/sub_filter 'http:\/\/develop.theme-park.dev' http:\/\/TP_DOMAIN;/sub_filter 'http:\/\/develop.theme-park.dev' ${TP_SCHEME}:\/\/${TP_DOMAIN}; /g" ${DEFAULT}
|
||||
cp /defaults/default /config/nginx/site-confs
|
||||
|
||||
# make our folders and links
|
||||
|
Loading…
Reference in New Issue
Block a user