diff --git a/README.md b/README.md index e80fd30..f380acc 100644 --- a/README.md +++ b/README.md @@ -121,49 +121,16 @@ ## Konfigurasi -**1. Pada node backend webserver :** +**1. Konfigurasi Server Block pada Node Backend Webserver :** -Server Block yang digunakan adalah sebagai berikut : +Download server block yang akan digunakan : -``` -server { - root /var/www/html/wp; - index index.php index.html index.htm; - server_name frontend.floss.my.id; - server_tokens off; - access_log /var/log/nginx/frontend_access.log; - error_log /var/log/nginx/frontend_error.log; - gzip on; - gzip_vary on; - gzip_min_length 10240; - gzip_proxied expired no-cache no-store private auth; - gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/xml application/javascript text/x-javascript; - gzip_disable "MSIE [1-6]\."; +`$ curl "https://git.leon36.web.id/leon/WordPress-Load-Balance-Layer-7/raw/27671cc489563e2b0b4a865eda62de92a0f9fffd/block.sh" | sh` +Verifikasi server block : - location / { - try_files $uri $uri/ /index.php?$args; - proxy_headers_hash_max_size 512; - proxy_headers_hash_bucket_size 64; - proxy_set_header Host $host; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - add_header Front-End-Https on; - } +`$ ls -lah /etc/nginx/conf.d/blocks.conf` - location ~* \.(jpg|jpeg|png|gif|ico|css|js)$ { - expires 365d; - } +`$ cat /etc/nginx/conf.d/blocks.conf` - location ~* \.(pdf)$ { - expires 30d; - } - location ~ \.php$ { - fastcgi_pass 127.0.0.1:9000; - fastcgi_index index.php; - fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; - include fastcgi_params; - } - -``` +**2. Konfigurasi file php-fpm :**