fix(nginx): custom vhost flarum
improvement: create custom vhost if doesn't existpull/34/head
parent
b50541af89
commit
ed36207636
|
@ -1,6 +0,0 @@
|
||||||
# Example:
|
|
||||||
|
|
||||||
# fix for flagrow/sitemap (https://github.com/flagrow/sitemap)
|
|
||||||
# location = /sitemap.xml {
|
|
||||||
# try_files $uri $uri/ /index.php?$query_string;
|
|
||||||
# }
|
|
|
@ -132,7 +132,7 @@ http {
|
||||||
fastcgi_param REMOTE_ADDR $http_x_real_ip;
|
fastcgi_param REMOTE_ADDR $http_x_real_ip;
|
||||||
}
|
}
|
||||||
|
|
||||||
include /etc/nginx/conf.d/custom-flarum.conf;
|
include /etc/nginx/conf.d/custom-vhost-flarum.conf;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -64,6 +64,18 @@ if [ -f 'extensions/composer.repositories.txt' ]; then
|
||||||
done < extensions/composer.repositories.txt
|
done < extensions/composer.repositories.txt
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Custom vhost flarum nginx
|
||||||
|
if [ ! -e '/etc/nginx/conf.d/custom-vhost-flarum.conf' ]; then
|
||||||
|
|
||||||
|
echo '# Example:
|
||||||
|
|
||||||
|
# fix for flagrow/sitemap (https://github.com/flagrow/sitemap)
|
||||||
|
# location = /sitemap.xml {
|
||||||
|
# try_files $uri $uri/ /index.php?$query_string;
|
||||||
|
# }' > /etc/nginx/conf.d/custom-vhost-flarum.conf
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
# if no installation was performed before
|
# if no installation was performed before
|
||||||
if [ -e 'assets/rev-manifest.json' ]; then
|
if [ -e 'assets/rev-manifest.json' ]; then
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue