Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apiVersion: v1
- kind: ConfigMap
- metadata:
- name: default-conf
- labels:
- tier: backend
- data:
- default.conf : |
- server {
- listen 80;
- listen [::]:80;
- server_tokens off;
- root "/var/www/html";
- index index.php index.html index.htm;
- charset utf-8;
- sendfile off;
- client_max_body_size 100m;
- location / {
- try_files $uri $uri/ /index.php$is_args$args;
- }
- location ~ \.php {
- try_files $uri /index.php =404;
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include fastcgi_params;
- }
- location ~ ^/fpm-(status|ping)$ {
- access_log off;
- allow 10.0.0.0/8;
- allow 127.0.0.0/16;
- deny all;
- include fastcgi_params;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_pass 127.0.0.1:9000;
- }
- location = /favicon.ico {
- access_log off;
- log_not_found off;
- }
- location = /robots.txt {
- access_log off;
- log_not_found off;
- }
- location ~* \.(?:ico|css|js|gif|jpe?g|png|svg)$ {
- expires max;
- add_header Pragma public;
- add_header Cache-Control "public, must-revalidate, proxy-revalidate";
- }
- location ~ /\.ht {
- deny all;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement