SHARE
TWEET

Untitled

a guest Jul 21st, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. apiVersion: v1
  2. kind: ConfigMap
  3. metadata:
  4.     name: default-conf
  5.     labels:
  6.         tier: backend
  7. data:
  8.     default.conf : |
  9.        server {
  10.             listen 80;
  11.             listen [::]:80;
  12.  
  13.             server_tokens off;
  14.  
  15.             root "/var/www/html";
  16.             index index.php index.html index.htm;
  17.  
  18.             charset utf-8;
  19.             sendfile off;
  20.             client_max_body_size 100m;
  21.  
  22.             location / {
  23.             try_files $uri $uri/ /index.php$is_args$args;
  24.             }
  25.  
  26.             location ~ \.php {
  27.             try_files $uri /index.php =404;
  28.             fastcgi_pass 127.0.0.1:9000;
  29.             fastcgi_index index.php;
  30.             fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  31.             include fastcgi_params;
  32.             }
  33.  
  34.             location ~ ^/fpm-(status|ping)$ {
  35.             access_log off;
  36.             allow 10.0.0.0/8;
  37.             allow 127.0.0.0/16;
  38.             deny all;
  39.             include fastcgi_params;
  40.             fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  41.             fastcgi_pass 127.0.0.1:9000;
  42.             }
  43.  
  44.             location = /favicon.ico {
  45.             access_log off;
  46.             log_not_found off;
  47.             }
  48.  
  49.             location = /robots.txt {
  50.             access_log off;
  51.             log_not_found off;
  52.             }
  53.  
  54.             location ~* \.(?:ico|css|js|gif|jpe?g|png|svg)$ {
  55.             expires max;
  56.             add_header Pragma public;
  57.             add_header Cache-Control "public, must-revalidate, proxy-revalidate";
  58.             }
  59.  
  60.             location ~ /\.ht {
  61.             deny all;
  62.             }
  63.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top