{"id":16513943,"url":"https://github.com/twin/digitalocean-spring-droplet-template","last_synced_at":"2026-04-10T12:31:14.580Z","repository":{"id":106444331,"uuid":"154588242","full_name":"TwiN/digitalocean-spring-droplet-template","owner":"TwiN","description":"A template that configures a droplet from scratch with HTTPS and the latest openjdk","archived":false,"fork":false,"pushed_at":"2018-12-05T01:02:32.000Z","size":18,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-02-12T07:06:37.057Z","etag":null,"topics":["bash","digitalocean","droplet","letsencrypt","spring","spring-boot","template","ubuntu"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/TwiN.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["TwiN"]}},"created_at":"2018-10-25T00:46:08.000Z","updated_at":"2019-07-28T20:07:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"b5599867-c36a-4435-8954-4ad187fb5b08","html_url":"https://github.com/TwiN/digitalocean-spring-droplet-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TwiN/digitalocean-spring-droplet-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TwiN%2Fdigitalocean-spring-droplet-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TwiN%2Fdigitalocean-spring-droplet-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TwiN%2Fdigitalocean-spring-droplet-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TwiN%2Fdigitalocean-spring-droplet-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TwiN","download_url":"https://codeload.github.com/TwiN/digitalocean-spring-droplet-template/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TwiN%2Fdigitalocean-spring-droplet-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31642664,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T07:40:12.752Z","status":"ssl_error","status_checked_at":"2026-04-10T07:40:11.664Z","response_time":98,"last_error":"SSL_read: 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":["bash","digitalocean","droplet","letsencrypt","spring","spring-boot","template","ubuntu"],"created_at":"2024-10-11T16:10:55.582Z","updated_at":"2026-04-10T12:31:14.549Z","avatar_url":"https://github.com/TwiN.png","language":"Shell","funding_links":["https://github.com/sponsors/TwiN"],"categories":[],"sub_categories":[],"readme":"# digitalocean-spring-droplet-template\n\nAs the name more or less implies, this repository is a template of the necessary \ndependencies required to run a spring boot application on a fresh droplet.\n\nRather than having your Spring application take care of the certificates, this uses Nginx as reverse proxy\nto perform SSL termination. If the user tries to use HTTP rather than HTTPS, Nginx will redirect the user to HTTPS.\n\n![scheme](img/scheme.png)\n\n\\* _NOTE: HTTP (80) gets redirected to HTTPS (443)_\n\nFor now, the initial configuration is expected to be one of the following:\n\n- Ubuntu 18.04 x64\n- Ubuntu 16.04 x64\n\nLater on, perhaps support for different distributions will be added.\n\n\n## What does it do?\n\n- Installs the latest JDK\n- Generates a TLS certificate with LetsEncrypt using [certbot](https://github.com/certbot/certbot)\n- Installs Nginx to use as reverse proxy for SSL/TLS termination \n\nNginx will listen to port 80 and port 443. \n- If the port is 80, then the user will be redirected to port 443.\n- If the port is 443, then the user will see where Nginx' reverse proxy is pointing to, \nwhich is the port your application is bound to.\n\n\n## How does it work?\n\n_Assuming you already ssh'd in the droplet using the root user_\n\n```bash\ngit clone https://github.com/TwinProduction/digitalocean-spring-droplet-template\ncd digitalocean-spring-droplet-template\nchmod 755 install.sh\n./install.sh yourdomain.com 8080\n```\n\nwhere `8080` is the port on which your application runs on (cannot be 443 or 80).\n\n\n## Requirements\n\n- Create a new Ubuntu 18.04 x64 droplet\n- Have a domain pointing to DigitalOcean's name servers\n- Have that domain pointing to your new droplet using an `A` record\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwin%2Fdigitalocean-spring-droplet-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftwin%2Fdigitalocean-spring-droplet-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwin%2Fdigitalocean-spring-droplet-template/lists"}