Compare commits

..

2 Commits

Author SHA1 Message Date
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 0 additions and 48 deletions

0
init Normal file → Executable file
View File

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;
}
}