2023-02-11 18:08:53 -08:00
|
|
|
server {
|
2023-02-12 07:50:41 -08:00
|
|
|
listen 8080;
|
|
|
|
server_name ${OPEN_SEARCH_HOST_FOR_NGINX} localhost;
|
2023-02-11 18:08:53 -08:00
|
|
|
|
2023-09-01 05:19:15 -07:00
|
|
|
add_header Content-Security-Policy "default-src 'none'; style-src 'self'; img-src 'self'";
|
|
|
|
add_header X-Frame-Options "DENY" always;
|
|
|
|
add_header X-Content-Type-Options "nosniff";
|
|
|
|
|
2023-02-11 18:08:53 -08:00
|
|
|
root /var/www/html;
|
|
|
|
index index.php;
|
|
|
|
|
|
|
|
location / {
|
|
|
|
try_files $uri $uri/ /index.php?$args;
|
|
|
|
}
|
|
|
|
|
|
|
|
location ~ \.php$ {
|
2023-08-29 18:49:11 -07:00
|
|
|
fastcgi_pass unix:/run/php-fpm82.sock;
|
2023-02-11 18:08:53 -08:00
|
|
|
fastcgi_index index.php;
|
2023-02-12 06:13:58 -08:00
|
|
|
include fastcgi.conf;
|
2023-02-11 18:08:53 -08:00
|
|
|
}
|
|
|
|
}
|