use .test as tld instead of .local

because macOS treats every .local domain as a Bonjour host which delays
dns lookups
This commit is contained in:
Jakob Schrettenbrunner
2018-12-17 23:06:20 +01:00
parent 7187be4781
commit fb74162da2
5 changed files with 21 additions and 21 deletions

View File

@@ -2,7 +2,7 @@
export DEBIAN_FRONTEND=noninteractive
cp /tmp/.deploy/supervisor/pterodactyl.conf /etc/supervisor/conf.d/pterodactyl.conf
cp /tmp/.deploy/nginx/pterodactyl.local.conf /etc/nginx/sites-available/pterodactyl.local.conf
cp /tmp/.deploy/nginx/pterodactyl.test.conf /etc/nginx/sites-available/pterodactyl.test.conf
# Needed for FPM to start correctly.
mkdir -p /run/php
@@ -49,7 +49,7 @@ EOF
cat >> /etc/php/7.2/fpm/conf.d/20-xdebug.ini <<EOF
xdebug.remote_enable=1
xdebug.profiler_enable=1
xdebug.remote_host=host.pterodactyl.local
xdebug.remote_host=host.pterodactyl.test
EOF
# Install development dependencies
@@ -58,7 +58,7 @@ yarn install --no-progress
# Cleanup
rm -rfv /var/www
rm -rv /etc/nginx/sites-enabled/*
ln -s /etc/nginx/sites-available/pterodactyl.local.conf /etc/nginx/sites-enabled/pterodactyl.local.conf
ln -s /etc/nginx/sites-available/pterodactyl.test.conf /etc/nginx/sites-enabled/pterodactyl.test.conf
# Start processes
supervisorctl reread

View File

@@ -10,7 +10,7 @@ apt install -y --no-install-recommends nginx nodejs yarn supervisor
# Copy over deployment specific files.
cp /tmp/.deploy/supervisor/pterodocs.conf /etc/supervisor/conf.d/pterodocs.conf
cp /tmp/.deploy/nginx/pterodocs.local.conf /etc/nginx/sites-available/pterodocs.local.conf
cp /tmp/.deploy/nginx/pterodocs.test.conf /etc/nginx/sites-available/pterodocs.test.conf
cd /srv/documentation
yarn add vuepress
@@ -21,7 +21,7 @@ ln -s /srv/documentation ~/docs
# Configure and restart nginx
rm -rfv /var/www
rm -rfv /etc/nginx/sites-enabled/*
ln -s /etc/nginx/sites-available/pterodocs.local.conf /etc/nginx/sites-enabled/pterodocs.local.conf
ln -s /etc/nginx/sites-available/pterodocs.test.conf /etc/nginx/sites-enabled/pterodocs.test.conf
supervisorctl reread
supervisorctl update