# Install the EPEL repository on host server - sudo yum install epel-release # Update the repository on host server - sudo yum update # Install NGINX Open Source on host server - sudo yum install nginx # Verify the installation on host server - sudo nginx -v -------------------------------------------------------------- # nginx sample configuration for application - cd /etc/nginx/conf.d - vi dev.ndmlkra.devops.conf # Paste below server block and do necessary changes as per url. Save and Exit. ### upstream apisix-proxy-dev { keepalive 100; server localhost:30755; } # For more information on configuration, see: # * Official English Documentation: http://nginx.org/en/docs/ # server { # listen 80; # listen [::]:80; # server_name dev.ndmlkra.devops.remiges.tech; # root /usr/share/nginx/html; # # Load configuration files for the default server block. # include /etc/nginx/default.d/*.conf; # error_page 404 /404.html; # location = /404.html { # } # error_page 500 502 503 504 /50x.html; # location = /50x.html { # } # } # Settings for a TLS enabled server. server { listen 443 ssl http2; listen [::]:443 ssl http2; server_name dev.ndmlkra.devops.remiges.tech; root /usr/share/nginx/html; ssl_certificate "/etc/letsencrypt/live/dev.ndmlkra.devops.remiges.tech/fullchain.pem"; ssl_certificate_key "/etc/letsencrypt/live/dev.ndmlkra.devops.remiges.tech/privkey.pem"; ssl_session_cache shared:SSL:1m; ssl_session_timeout 10m; ssl_ciphers HIGH:!aNULL:!MD5; ssl_prefer_server_ciphers on; error_page 404 /404.html; location = /40x.html { } error_page 500 502 503 504 /50x.html; location = /50x.html { } location / { proxy_set_header Host $Host; proxy_pass http://apisix-proxy-dev; } } ### # Test nginx configuration - nginx -t # If nginx configuration test successful, then restart nginx - systemctl restart nginx