NgixProxy_Pathfinder/entrypoint.sh

15 lines
271 B
Bash

#!/bin/bash
# Carrega o .bashrc se existir
[ -f ~/.bashrc ] && . ~/.bashrc
# Gera chaves de host SSH se não existirem
ssh-keygen -A
# Inicia o SSH em background
/usr/sbin/sshd
# Inicia o Nginx em foreground
echo "🚀 Iniciando Nginx..."
exec nginx -g "daemon off;"