mirror of
https://github.com/pterodactyl/development.git
synced 2025-12-10 10:44:48 -06:00
Get dev environment into working order
This commit is contained in:
parent
e8cad22fd5
commit
e6e720beae
@ -21,8 +21,7 @@ if [ -d "/etc/certs" ]; then
|
||||
fi
|
||||
|
||||
cd /var/www/html || exit 1
|
||||
#sudo chown -R pterodactyl:pterodactyl *
|
||||
#sudo chown -R www-data:pterodactyl storage
|
||||
sudo chown -R www-data:pterodactyl storage
|
||||
sudo chmod -R 775 storage/* bootstrap/cache
|
||||
|
||||
if [ $# -gt 0 ]; then
|
||||
|
||||
@ -40,11 +40,11 @@ services:
|
||||
- "traefik.http.routers.app.entrypoints=https"
|
||||
- "traefik.http.routers.app.service=app"
|
||||
- "traefik.http.services.app.loadbalancer.server.port=80"
|
||||
- "traefik.http.routers.hmr.tls=true"
|
||||
- "traefik.http.routers.hmr.rule=Host(`hmr.pterodactyl.test`)"
|
||||
- "traefik.http.routers.hmr.entrypoints=https"
|
||||
- "traefik.http.routers.hmr.service=hmr"
|
||||
- "traefik.http.services.hmr.loadbalancer.server.port=8080"
|
||||
- "traefik.http.routers.webpack-dev-server.tls=true"
|
||||
- "traefik.http.routers.webpack-dev-server.rule=Host(`pterodactyl.test`) && PathPrefix(`/webpack@hmr`, `/sockjs-node`)"
|
||||
- "traefik.http.routers.webpack-dev-server.entrypoints=https"
|
||||
- "traefik.http.routers.webpack-dev-server.service=webpack-dev-server"
|
||||
- "traefik.http.services.webpack-dev-server.loadbalancer.server.port=8080"
|
||||
wings:
|
||||
build:
|
||||
context: ./build/wings
|
||||
@ -54,8 +54,8 @@ services:
|
||||
stdin_open: true
|
||||
networks:
|
||||
- pterodactyl
|
||||
ports:
|
||||
- "2022:2022"
|
||||
# ports:
|
||||
# - "2022:2022"
|
||||
volumes:
|
||||
- ./code/wings:/home/root/wings
|
||||
- wings_data:/var/lib/pterodactyl
|
||||
|
||||
4
setup.sh
4
setup.sh
@ -13,7 +13,7 @@ do
|
||||
done
|
||||
|
||||
mkcert -install
|
||||
mkcert pterodactyl.test hmr.pterodactyl.test minio.pterodactyl.test s3.minio.pterodactyl.test
|
||||
mkcert pterodactyl.test wings.pterodactyl.test minio.pterodactyl.test s3.minio.pterodactyl.test
|
||||
|
||||
mv -v *pterodactyl.test*-key.pem docker/certificates/pterodactyl.test-key.pem || exit 1
|
||||
mv -v *pterodactyl.test*.pem docker/certificates/pterodactyl.test.pem || exit 1
|
||||
@ -23,7 +23,7 @@ echo ""
|
||||
if [ ! -f "/etc/hosts" ]; then
|
||||
echo "no system hosts file found, please manually configure your system"
|
||||
else
|
||||
for DOMAIN in "pterodactyl.test" "hmr.pterodactyl.test" "minio.pterodactyl.test" "s3.minio.pterodactyl.test"
|
||||
for DOMAIN in "pterodactyl.test" "wings.pterodactyl.test" "minio.pterodactyl.test" "s3.minio.pterodactyl.test"
|
||||
do
|
||||
ESCAPED_DOMAIN=$(echo $DOMAIN | sed "s/\./\\\./g")
|
||||
if ! grep -q -E "127\.0\.0\.1\s+$ESCAPED_DOMAIN\s*$" /etc/hosts; then
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user