Compare commits

...

3 Commits

Author SHA1 Message Date
Dai Nguyen
0d6aea4212 Update init 2025-10-10 10:31:26 -06:00
Dai Nguyen
511b29689c Update init 2025-10-10 09:48:15 -06:00
Dai Nguyen
293607d553 Remove phpmyadmin 2025-10-10 09:47:55 -06:00
2 changed files with 5 additions and 49 deletions

6
init Normal file → Executable file
View File

@@ -73,4 +73,8 @@ chown www-data:www-data -R /var/www
chmod -R g+w /var/www/$WP_DOMAIN_NAME
find /var/www -type d -exec chmod 755 {} \;
find /var/www -type f -exec chmod 644 {} \;
EOF
EOF
# Cloudflared
curl --location --output cloudflared.deb https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb && sudo dpkg -i cloudflared.deb
sudo systemctl restart cloudflared.service

View File

@@ -1,48 +0,0 @@
server {
# Change this to 80 if you want to access it with a subdomain instead
listen 8080 default_server;
listen [::]:8080 default_server;
root /usr/share/phpmyadmin;
index index.php index.html index.htm index.nginx-debian.html;
# If you want it to be accessible on a subdomain, replace _ with your subdomain, and make sure you have a DNS record pointing to your server
server_name _;
location / {
try_files $uri $uri/ /index.php?$args;
}
# pass PHP scripts to FastCGI server
#
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_intercept_errors on;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
fastcgi_pass unix:/run/php/php-fpm.sock;
add_header X-Content-Type-Options nosniff;
add_header X-XSS-Protection "1; mode=block";
add_header X-Permitted-Cross-Domain-Policies none;
add_header X-Frame-Options "SAMEORIGIN";
}
# Don't log access to favicon.ico and robots.txt
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
# Deny access to hidden files
location ~ /\.ht {
deny all;
}
}