{"id":20178780,"url":"https://github.com/drsnowbird/nginx-reverse-proxy-docker","last_synced_at":"2026-01-22T00:34:29.792Z","repository":{"id":90087524,"uuid":"167779919","full_name":"DrSnowbird/nginx-reverse-proxy-docker","owner":"DrSnowbird","description":"Nginx Reverse Proxy Docker","archived":false,"fork":false,"pushed_at":"2024-07-30T16:47:30.000Z","size":58,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T04:52:35.371Z","etag":null,"topics":["docker","https-proxy","nginx","reverse-proxy"],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/DrSnowbird.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":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-27T06:50:59.000Z","updated_at":"2024-07-30T16:47:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"0c962dea-7a5b-4e6e-8ba3-3c56a5631f24","html_url":"https://github.com/DrSnowbird/nginx-reverse-proxy-docker","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/DrSnowbird/nginx-reverse-proxy-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrSnowbird%2Fnginx-reverse-proxy-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrSnowbird%2Fnginx-reverse-proxy-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrSnowbird%2Fnginx-reverse-proxy-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrSnowbird%2Fnginx-reverse-proxy-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DrSnowbird","download_url":"https://codeload.github.com/DrSnowbird/nginx-reverse-proxy-docker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrSnowbird%2Fnginx-reverse-proxy-docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28648460,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T21:29:11.980Z","status":"ssl_error","status_checked_at":"2026-01-21T21:24:31.872Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["docker","https-proxy","nginx","reverse-proxy"],"created_at":"2024-11-14T02:23:26.187Z","updated_at":"2026-01-22T00:34:29.767Z","avatar_url":"https://github.com/DrSnowbird.png","language":"Shell","readme":"# Nginx Reverse Proxy Docker Container\nDocker image for a reverse proxy, powered by nginx. \n\n# Concept\nThis git / docker image is desinged to demo with examples for reverse proxy together with two other Docker containers so that people can easily learn how to create reverse proxy using this Docker container:\n* openkbs/nginx-reverse-proxy-docker\n* openkbs/jetty-fileserver, and\n* openkbs/rest-dev-vnc-docker\n\nBy showing the actual working examples as the part of the demo, template, and actual configuratons, you can easily adapt or modify to become your own. \n\n# Nginx Configuration Folder\nAll you need to do is to provide ./etc/nginx configuration folder and launch this Docker container, then you have your customized Nginx Server.\nHere is the ./etc/nginx folder which will be used to map into the Nginx Container when using \"./run.sh\" or \"docker-compose up -d\":\n\n```\n(note the following \"*.conf\" files are just for demo purpose - you should not use them in your system!)\n./etc\n└── nginx\n    ├── certificates\n    ├── conf.d\n    │   ├── jetty.conf\n    │   ├── noVNC.conf\n    │   └── proxy.conf\n    ├── mime.types\n    ├── nginx.conf\n    ├── sites-enabled\n    └── ssl\n        ├── nginx.crt (auto generated)\n        └── nginx.key (auto generated)\n\n```\n# Ngnix Config\n* There three examples config files in 'etc/nginx/config.d' folder:\n1. ./etc/nginx/conf.d/jetty.conf\n2. ./etc/nginx/conf.d/jena-fuseki-docker.conf\n3. ./etc/nginx/conf.d/blazegraph.conf\n\n`IMPORTANT!`, you will have to modify the server IP address or domain name. currently, it is using some random IP address. Hence, it will not work if you did not modify those server IP address.\n```\nYou need to replace the \"random IP address\" for each '*.conf' file with the actual IP address when accessing from remote machines.\n\n```\n\n# Run\n* Note that the 'docker-compose.yml' is for demo only! You should modify to your specific configuration!\n```\ndocker-compmose up\n\n##  PORTS_LIST=\"80:80 443:443\"\n## -- Reverse Proxy internal setup: --\n##       # openkbs/jetty-fileserver \n##       - Proxy access [38443 / 38080] -\u003e 18080 -\u003e 8080\n##       # openkbs/blazegraph-docker \n##       - Proxy access [39443 / 39999] -\u003e 9999 -\u003e 9999\n##       # openkbs/jena-fuseki-docker \n##       - Proxy access [33843 / 33030] -\u003e 13030 -\u003e 3030\n\n#PORTS_LIST=\"38843 38080  39443 39999  33843 33030\"\n```\n\n# Volumes\n\n* **/etc/nginx/sites-enabled**: Should contains nginx configurations for redirections to websites/web apps.\n* **/etc/nginx/certificates**: Should contains certificates used in nginx redirection configurations.\n\n# References\n* [Nginx-Examples](https://www.nginx.com/resources/wiki/start/topics/examples/full/)\n* [Nginx + noVNC as Reverse Proxy](https://github.com/novnc/noVNC/wiki/Proxying-with-nginx)\n* [How to config Nginx](https://www.linode.com/docs/web-servers/nginx/how-to-configure-nginx/)\n\n# Using Ngix as Web Server\nThe Nginx container is set up by default to look for an index page at /usr/share/nginx/html, so in our new Docker container, we need to give it access to our files at that location. Let’s use the -v flag to map a folder from your local machine ~/docker-nginx/html to a relative path in the container that is /usr/share/nginx/html\n\nThis can be accomplished by using the following command in your ssh terminal.\n\n```\nsudo docker run --name docker-nginx -p 18880:80 -d -v ~/docker-nginx/html:/usr/share/nginx/html nginx\n```\n\n# Validate Nginx Configuration\n```\nnginx -c /etc/nginx/nginx.conf -t\n\nIn Docker run:\ndocker run --rm -t -a stdout --name my-nginx -v $PWD/config/:/etc/nginx/:ro nginx:latest nginx -c /etc/nginx/nginx.conf -t\n\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrsnowbird%2Fnginx-reverse-proxy-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrsnowbird%2Fnginx-reverse-proxy-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrsnowbird%2Fnginx-reverse-proxy-docker/lists"}