Compare commits
3 Commits
2183e57a36
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0d6aea4212 | ||
|
|
511b29689c | ||
|
|
293607d553 |
6
init
Normal file → Executable file
6
init
Normal file → Executable file
@@ -73,4 +73,8 @@ chown www-data:www-data -R /var/www
|
|||||||
chmod -R g+w /var/www/$WP_DOMAIN_NAME
|
chmod -R g+w /var/www/$WP_DOMAIN_NAME
|
||||||
find /var/www -type d -exec chmod 755 {} \;
|
find /var/www -type d -exec chmod 755 {} \;
|
||||||
find /var/www -type f -exec chmod 644 {} \;
|
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
|
||||||
|
|||||||
@@ -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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user