{"id":28229577,"url":"https://github.com/munirmuratovic/react-dotnet-nginx-dockerized","last_synced_at":"2026-04-09T01:31:45.840Z","repository":{"id":194423368,"uuid":"377646953","full_name":"munirmuratovic/react-dotnet-nginx-dockerized","owner":"munirmuratovic","description":"Nginx SSL Reverse Proxy with React.js frontend and .NET Core backend, all loosely coupled services running as Docker containers","archived":false,"fork":false,"pushed_at":"2022-06-04T21:09:18.000Z","size":1378,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-07T02:43:52.657Z","etag":null,"topics":["docker","dotnet-core","nginx","reactjs"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/munirmuratovic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-06-16T22:51:46.000Z","updated_at":"2022-05-26T21:23:16.000Z","dependencies_parsed_at":"2023-09-13T08:19:11.287Z","dependency_job_id":null,"html_url":"https://github.com/munirmuratovic/react-dotnet-nginx-dockerized","commit_stats":null,"previous_names":["munirmuratovic/react-dotnet-nginx-dockerized"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/munirmuratovic/react-dotnet-nginx-dockerized","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/munirmuratovic%2Freact-dotnet-nginx-dockerized","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/munirmuratovic%2Freact-dotnet-nginx-dockerized/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/munirmuratovic%2Freact-dotnet-nginx-dockerized/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/munirmuratovic%2Freact-dotnet-nginx-dockerized/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/munirmuratovic","download_url":"https://codeload.github.com/munirmuratovic/react-dotnet-nginx-dockerized/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/munirmuratovic%2Freact-dotnet-nginx-dockerized/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31581864,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"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","dotnet-core","nginx","reactjs"],"created_at":"2025-05-18T16:10:36.467Z","updated_at":"2026-04-09T01:31:45.812Z","avatar_url":"https://github.com/munirmuratovic.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React + Nginx + ASP.NET Core WEB API\n\nNOTE: Before docker-compose up, please go to frontend, npm install then npm run build, then remove node_modules folder! (rm -r node_modules/)\n\nWeb App Deployment with docker, Nginx and SSL\n\n## ubuntu+nginx+certbot - Dockerfile\n\n```Dockerfile\nFROM ubuntu:18.04\n\nRUN apt update -y \\\n    \u0026\u0026 apt install nginx -y \\\n    \u0026\u0026 apt-get install software-properties-common -y \\\n    \u0026\u0026 add-apt-repository ppa:certbot/certbot -y \\\n    \u0026\u0026 apt-get update -y \\\n    \u0026\u0026 apt-get install python-certbot-nginx -y \\\n    \u0026\u0026 apt-get clean\n\nEXPOSE 80\n\nSTOPSIGNAL SIGTERM\n\nCMD [\"nginx\", \"-g\", \"daemon off;\"]\n```\n\n## Nginx Configuration - default.conf\n\n```\nserver {\n        listen 80 default_server;\n        listen [::]:80 default_server;\n        root /var/www/html;\n        index index.html index.htm index.nginx-debian.html;\n        server_name meetnet.net www.meetnet.net;\n        location / {\n            root /var/www/html;\n            try_files $uri /index.html;\n        }\n        location /api/ {\n            proxy_pass http://server/api/;\n        }\n}\n```\n\n## docker-compose.yml\n\n```yaml\nversion: '3.8'\nservices:\n  server:\n    image: node:12-alpine\n    ports:\n      - '8080:80'\n    volumes:\n      - ./server:/root/server\n    env_file:\n      - ./deploy/server.env\n    entrypoint: sh /root/server/start_server.sh\n  frontend:\n    build:\n      context: ./deploy\n      dockerfile: Dockerfile\n    ports:\n      - '80:80'\n      - '443:443'\n    volumes:\n      - ./frontend/build:/var/www/html\n      - ./deploy/default.conf:/etc/nginx/sites-available/default\n      - ./letsencrypt:/etc/letsencrypt\n    depends_on:\n      - server\n```\n\n`./letsencrypt` will contain the data, you won't need to setup SSL again after restarting/recreating the containers.\n\n## Deploy and Setup SSL\n\n```bash\ndocker-compose up -d\ndocker exec -it \u003cfrontend_container\u003e bash       # bash into the nginx container\ncertbot --nginx -d \u003cyour-website.com\u003e -d \u003cwww.your-website.com\u003e    # setup SSL certificate\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmunirmuratovic%2Freact-dotnet-nginx-dockerized","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmunirmuratovic%2Freact-dotnet-nginx-dockerized","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmunirmuratovic%2Freact-dotnet-nginx-dockerized/lists"}