it-tools/startup.sh
2023-06-01 22:15:33 +02:00

15 lines
299 B
Bash
Executable file

#!/bin/sh
# Generate the nginx.conf with PORT env or default to 80
cat > /etc/nginx/conf.d/default.conf <<EOF
server {
listen ${PORT:-80};
server_name localhost;
root /usr/share/nginx/html;
index index.html;
location / {
try_files \$uri \$uri/ /index.html;
}
}
EOF