{"id":39825396,"url":"https://github.com/omnistrate-oss/serverless-proxy","last_synced_at":"2026-01-18T13:04:03.498Z","repository":{"id":207055676,"uuid":"676646899","full_name":"omnistrate-oss/serverless-proxy","owner":"omnistrate-oss","description":"Lightweight serverless proxy forwarding traffic","archived":false,"fork":false,"pushed_at":"2026-01-02T17:11:03.000Z","size":159,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-01-09T03:19:18.265Z","etag":null,"topics":["saas","saas-boilerplate","serverless"],"latest_commit_sha":null,"homepage":"https://omnistrate.com/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/omnistrate-oss.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-08-09T17:15:58.000Z","updated_at":"2026-01-02T17:10:35.000Z","dependencies_parsed_at":"2023-11-26T14:28:45.579Z","dependency_job_id":"7a198ca8-3b73-4119-a780-a7dd52dbd209","html_url":"https://github.com/omnistrate-oss/serverless-proxy","commit_stats":null,"previous_names":["omnistrate/pg-proxy","omnistrate-oss/serverless-proxy"],"tags_count":24,"template":false,"template_full_name":null,"purl":"pkg:github/omnistrate-oss/serverless-proxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omnistrate-oss%2Fserverless-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omnistrate-oss%2Fserverless-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omnistrate-oss%2Fserverless-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omnistrate-oss%2Fserverless-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/omnistrate-oss","download_url":"https://codeload.github.com/omnistrate-oss/serverless-proxy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omnistrate-oss%2Fserverless-proxy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28536688,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T10:13:46.436Z","status":"ssl_error","status_checked_at":"2026-01-18T10:13:11.045Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["saas","saas-boilerplate","serverless"],"created_at":"2026-01-18T13:04:03.433Z","updated_at":"2026-01-18T13:04:03.491Z","avatar_url":"https://github.com/omnistrate-oss.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Omnistrate Postgres Proxy Example\nThis is a simple example to show how to leverage postgres proxy with Omnistrate platform to build serverless product.\n\n## Build Example Proxy Docker Image\n\n- Generic proxy example\n\n    ```\n    make docker-build-generic\n    ```\n\n- MySQL proxy example  \n\n    ```\n    make docker-build-generic\n    ```\n    \n- Postgres proxy example\n\n    ```\n    make docker-build-generic\n    ```\n\n## Setup Simple Postgres Serverless With Omnistrate\n\nPre-requisite:\nPlease follow https://github.com/omnistrate-oss/account-setup to setup AWS bootstrap account/role\n\n**Step 1: Import Service Definition From Docker Compose**\n\nSample docker compose file exist in /dockercompose/postgres_demo.yaml folder\n\nYou can import the docker image using the UI using the **Import docker compose** option\n\n![image](https://github.com/omnistrate-oss/serverless-proxy/assets/1789738/08a6257c-5877-41cb-a827-7ab23dbe537b)\n\n\nThe docker compose example uses two images: \n- docker.io/njnjyyh/pg-proxy-demo:1 \u003c- postgres image with prometheus metrics exporter (https://github.com/prometheus-community/postgres_exporter)\n- docker.io/njnjyyh/pg-proxy-demo:2.0 \u003c- proxy image built from this repo\n\nSetup Service Name to **Postgres Serverless**. Using this name is important as the following commands will reference the service with this name. \n\n**Step 2: Setup Postgres Instance**\n\nIn Omnistrate console access page, provision a Postgres instance \n\n**Step 3: Access Postgres instance**\n\nOnce Postgres instance is up and running, check the connectivity from access page and get the endpoint/port for connection. Note that the endpoint shown in the page is pointing to the proxy and not directly to the provisioned instance. \n\nNote that if the instance is not used for some time it will be stopped automatically. \n\n```\npsql -U postgres -W -h \u003cendpoint\u003e postgres -p \u003cport\u003e\n```\n\nThe default password for the demo is **postgres**\n\nOnce we attempt to start the connection the instance will be automatically started, it will take a few minutes for the server to start and then you can operate on the open connection.\n\nWhile the connection is open the instance will be Running and after the connection is close the instance will be Stopped automatically. Auto stop in this example relies on prometheus metrics pg_stat_database_num_backends. If you want to use other metrics, please update docker compose.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomnistrate-oss%2Fserverless-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fomnistrate-oss%2Fserverless-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomnistrate-oss%2Fserverless-proxy/lists"}