Skip to content

mamunsyuhada/reverse-proxy-submission

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NGINX as Reverse Proxy Submission (DevOps-Dicoding)

NGINX.conf

upstream app {
  server app-express:8000;
}

limit_req_zone $binary_remote_addr zone=one:10m rate=10r/m;

server {
  listen 3000 default_server;

  location / {
    proxy_pass http://app;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection 'upgrade';
    proxy_set_header Host $host;
    proxy_cache_bypass $http_upgrade;

    limit_req zone=one;
  }
}

How to run it ?

docker compose -f "docker.compose.yml" up -d --build

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published