Skip to content

singhalkarun/proxy-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic Reverse Proxy Server in Go

Note

Run as root to be able to bind port 80

Adding a configuration

Add a new file to conf directory

Format

{   
    "hostname":"localhost",
    "routes": [
        {
            "location":"/api/",
            "proxy_url": "http://localhost:3001/"
        },
        {
            "location":"/",
            "proxy_url": "http://localhost:3000/"
        }
    ]
}

Note: