1
0

🏗️」 wip: started secrets management

This commit is contained in:
2025-03-05 14:17:13 +01:00
parent 1538afbc7b
commit 0a3dff2e67
9 changed files with 99 additions and 44 deletions

View File

@ -1,26 +0,0 @@
server {
listen 8443 ssl;
server_name _;
root /var/www/wordpress;
index index.php;
ssl_certificate $NGINX_SSL_CERT_FILE;
ssl_certificate_key $NGINX_SSL_KEY_FILE;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_session_timeout 10m;
keepalive_timeout 60;
location / {
try_files $${q}uri $${q}uri/ =404;
}
location ~ \.php$ {
fastcgi_pass $NGINX_PHP_HOST:9000;
fastcgi_index index.php;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
include fastcgi.conf;
}
}

View File

@ -1,6 +1,15 @@
#!/bin/sh
WP_DIR="/var/www/wordpress"
#WP_VERSION="6.7.2"
#if [ -f "$WP_DIR/index.php" ]; then
# echo "Already downloaded wordpress, skipping..."
#else
# echo "Downloading Wordpress ${WP_VERSION}"
# wp --allow-root core download --version=${WP_VERSION} --path=${WP_DIR}
#fi
if [ -f "${WP_DIR}/wp-config.php" ]; then
echo "Wordpress already configured, skipping installation"