Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

gemini protocol for jetty and spring

NotificationsYou must be signed in to change notification settings

warmuuh/jemini

Repository files navigation

gemini protocol server on top of jetty.

Features

  • integration with jetty & spring boot
  • supports all the goodies of normal spring boot webapp
  • implicit input handling with@GmiInput parameter annotation
  • dual-protocol: can serve bothgemini:// andhttps:// at the same time, translating gemtext to html
  • auto-redirect http to https
  • input handling in bothgemini:// andhttps://, transparent to application
  • client certificates for bothgemini:// andhttps://
  • session-logic based on client-certificates, both forgemini:// andhttps://
  • css-support for html-rendered gemtext

Getting Started

generate certificate

keytool -genkey -alias <alias> -keyalg RSA -keypass <key passphrase> -storepass <store passphrase> -keystore keystore.jks
# application.yamlgemini:server:key-password:storepasswordkeystore-password:storepasswordkeystore:file:keystore.jksdualHttp:truecss-for-http:/classless-tiny.css
<!-- setup github repository as maven repo. see https://docs.github.com/en/packages/guides/configuring-apache-maven-for-use-with-github-packages--><dependencies>  <dependency>   <groupId>com.github.warmuuh.jemini</groupId>   <artifactId>jemini-spring-boot-starter</artifactId>   <version>1.0-SNAPSHOT</version>  </dependency>  <dependency>    <groupId>org.springframework.boot</groupId>    <artifactId>spring-boot-starter-freemarker</artifactId>  </dependency></dependencies>

then you can use spring mvc as usual

@ControllerpublicclassHelloWorldController {@GetMapping("/test")publicStringtest() {return"index";  }@GetMapping("/test1")@ResponseBodypublicStringtest1() {return"Hello World. this is a dynamic page: " +Math.random();  }}

About

gemini protocol for jetty and spring

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages


[8]ページ先頭

©2009-2025 Movatter.jp