{"id":24189269,"url":"https://github.com/athrocks/nginx-spring","last_synced_at":"2026-04-15T19:40:20.763Z","repository":{"id":272157177,"uuid":"915691068","full_name":"athrocks/Nginx-Spring","owner":"athrocks","description":"Nginx as a reverse proxy with SSL/TLS for secure communication","archived":false,"fork":false,"pushed_at":"2025-01-12T14:58:56.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-12T15:38:15.055Z","etag":null,"topics":["docker","docker-compose","docker-container","docker-image","nginx","nginx-docker","nginx-proxy","spring-boot"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/athrocks.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":"2025-01-12T14:54:07.000Z","updated_at":"2025-01-12T15:08:35.000Z","dependencies_parsed_at":"2025-01-12T15:38:18.555Z","dependency_job_id":"993b1be2-9e90-407e-803f-a889392244dd","html_url":"https://github.com/athrocks/Nginx-Spring","commit_stats":null,"previous_names":["athrocks/nginx-spring"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/athrocks%2FNginx-Spring","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/athrocks%2FNginx-Spring/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/athrocks%2FNginx-Spring/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/athrocks%2FNginx-Spring/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/athrocks","download_url":"https://codeload.github.com/athrocks/Nginx-Spring/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241600518,"owners_count":19988715,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","docker-compose","docker-container","docker-image","nginx","nginx-docker","nginx-proxy","spring-boot"],"created_at":"2025-01-13T14:24:10.646Z","updated_at":"2026-04-15T19:40:20.713Z","avatar_url":"https://github.com/athrocks.png","language":"HTML","readme":"# Nginx with SSL/TLS Configuration\n\nThis repository contains a setup for running Nginx as a reverse proxy with SSL/TLS for secure communication. It includes configuration files, Docker integration, and steps for setting up and testing the environment locally or in production.\n\n## Directory Structure\n```plaintext\nproject\n|\n|-- nginx\n|   |-- ssl\n|   |   |-- nginx.crt        # SSL Certificate\n|   |   |-- nginx.key        # SSL Private Key\n|   |\n|   |-- nginx.conf           # Nginx Configuration File\n|\n|-- docker-compose.yaml      # Docker Compose Configuration\n|\n|-- Dockerfile               # Dockerfile for Spring Boot application\n```\n\n## Features\n- Reverse proxy setup using Nginx.\n- Load balancing across multiple backend services.\n- SSL/TLS encryption for secure communication.\n\n## Prerequisites\n1. **Docker \u0026 Docker Compose**\n   - Install Docker: [Get Docker](https://docs.docker.com/get-docker/)\n   - Install Docker Compose: [Install Docker Compose](https://docs.docker.com/compose/install/)\n\n2. **Generate SSL Certificates**\n   - Generate a self-signed certificate for testing:\n     ```bash\n     openssl req -x509 -newkey rsa:4096 -sha256 -days 365 -nodes \\\n       -keyout nginx/ssl/nginx.key -out nginx/ssl/nginx.crt \\\n       -subj \"/CN=localhost\"\n     ```\n\n## How to Run\n### 1. Build and Start the Services\n```bash\nmvn clean install # to install .jar files\n```\n\n```bash\ndocker-compose up --build\n```\n\n### 2. Access the Application\n- HTTP: [http://localhost](http://localhost) (Redirects to HTTPS)\n- HTTPS: [https://localhost](https://localhost)\n\n### 3. Verify SSL\n- Use a browser to confirm HTTPS works and verify the certificate details.\n- Use `curl` to check:\n  ```bash\n  curl -k https://localhost\n  ```\n\n## Notes\n1. **For Production**: Obtain SSL certificates from a trusted Certificate Authority (e.g., Let's Encrypt).\n\n## Troubleshooting\n1. **Check Nginx Logs**\n   ```bash\n   docker logs nginx-load-balancer\n   ```\n2. **Reload Nginx Configuration** (if running locally):\n   ```bash\n   nginx -s reload\n   ```\n3. **Test Certificate**:\n   ```bash\n   openssl x509 -in nginx/ssl/nginx.crt -text -noout\n   \n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fathrocks%2Fnginx-spring","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fathrocks%2Fnginx-spring","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fathrocks%2Fnginx-spring/lists"}