fast-ngrok

ngrok集成spring-boot,随应用启动快速映射应用端口

License

License

GroupId

GroupId

cn.cyejing
ArtifactId

ArtifactId

fast-ngrok
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

pom
Description

Description

fast-ngrok
ngrok集成spring-boot,随应用启动快速映射应用端口
Project URL

Project URL

https://github.com/cyejing/fast-ngrok
Source Code Management

Source Code Management

http://github.com/cyejing/fast-ngrok

Download fast-ngrok

Filename Size
fast-ngrok-1.0.1.pom 6 KB
Browse

How to add to project

<!-- https://jarcasting.com/artifacts/cn.cyejing/fast-ngrok/ -->
<dependency>
    <groupId>cn.cyejing</groupId>
    <artifactId>fast-ngrok</artifactId>
    <version>1.0.1</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/cn.cyejing/fast-ngrok/
implementation 'cn.cyejing:fast-ngrok:1.0.1'
// https://jarcasting.com/artifacts/cn.cyejing/fast-ngrok/
implementation ("cn.cyejing:fast-ngrok:1.0.1")
'cn.cyejing:fast-ngrok:pom:1.0.1'
<dependency org="cn.cyejing" name="fast-ngrok" rev="1.0.1">
  <artifact name="fast-ngrok" type="pom" />
</dependency>
@Grapes(
@Grab(group='cn.cyejing', module='fast-ngrok', version='1.0.1')
)
libraryDependencies += "cn.cyejing" % "fast-ngrok" % "1.0.1"
[cn.cyejing/fast-ngrok "1.0.1"]

Dependencies

compile (4)

Group / Artifact Type Version
ch.qos.logback : logback-classic jar 1.1.11
org.slf4j : jcl-over-slf4j jar 1.7.25
org.slf4j : jul-to-slf4j jar 1.7.25
org.slf4j : log4j-over-slf4j jar 1.7.25

Project Modules

  • fast-ngrok-core
  • fast-ngrok-starter

Fast-Ngrok

Java版本Ngrok客户端,集成spring-boot随应用启动快速映射应用端口

使用方法

  1. 添加POM依赖:
<dependency>
    <groupId>cn.cyejing</groupId>
    <artifactId>fast-ngrok-starter</artifactId>
    <version>1.0.1</version>
</dependency>
  1. 启动spring-boot应用可以在日志看到映射的地址.

默认配置

可以不用填写配置启动项目,如果想修改默认配置,有以下配置项:

  1. 简单配置项
ngrok.serevr-address=b.cyejing.cn ngrok的服务地址
ngrok.server-port=4443 ngrok的服务端口
ngrok.subdomain=自定义子域名,不填则是随机
  1. 增强配置项
ngrok.enabled=true 打开ngrok映射
ngrok.hostname=自定义域名,如:yourdomain.com
ngrok.httpAuth=访问授权,如:user:password

ngrok,spring,spring boot,spring-boot,springboot,内网映射,内网穿透,微信开发,接口回调

Versions

Version
1.0.1
1.0.0