Compare commits

..

8 Commits

Author SHA1 Message Date
9899e2648b Removing unnecessary agentic changes Hithomelabs/CFTunnels#114
All checks were successful
sample gradle build and test / build (pull_request) Successful in 1m47s
sample gradle build and test / tag (push) Successful in 8s
sample gradle build and test / build_tag_push (push) Successful in 2m7s
Daily cloudflare API integration test / cloudflare-api-test (push) Successful in 1m39s
Promote image with tag test to prod / tag (push) Successful in 7s
Promote image with tag test to prod / build_tag_push (push) Successful in 14s
2026-04-18 22:53:32 +05:30
705140629b Merge branch 'test' into Hithomelabs/CFTunnels#114
All checks were successful
sample gradle build and test / build (pull_request) Successful in 1m42s
sample gradle build and test / tag (push) Successful in 8s
sample gradle build and test / build_tag_push (push) Successful in 3m33s
2026-04-18 22:34:46 +05:30
5ad6acbd00 Fixing breaking build due to import errors, Hithomelabs/CFTunnels#114
All checks were successful
sample gradle build and test / build (pull_request) Successful in 1m49s
2026-04-18 22:15:53 +05:30
c6d9b0994d Merge pull request 'Fix build issues - Spring Boot plugin, imports, and ENV default' (#116) from Dave/CFTunnels:ISSUE-114 into test
Some checks failed
sample gradle build and test / tag (push) Successful in 7s
sample gradle build and test / build_tag_push (push) Failing after 6m57s
Reviewed-on: #116
2026-04-18 16:16:05 +00:00
29b767d634 Hithomelabs/CFTunnels#114: Fix properties parser blocking issue
Fixed the malformed comment in application.properties:
- Changed "/ * * Masking" to "# Making" to create a valid comment
- This was causing the properties parser to fail
2026-04-18 15:29:40 +00:00
6304c69577 Fix ENV variable with default value 2026-04-18 15:06:25 +00:00
7fdfdacf50 Fix by adding explicit import statements 2026-04-18 15:06:11 +00:00
e4a51ed9f8 Fix build by using buildscript pattern instead of plugin DSL 2026-04-18 15:05:51 +00:00
4 changed files with 14 additions and 11 deletions

1
.gitignore vendored
View File

@ -6,6 +6,7 @@ build/
!gradle/wrapper/gradle-wrapper.jar
!**/src/main/**/build/
!**/src/test/**/build/
CFTunnels/
### STS ###
.apt_generated

View File

@ -1,7 +1,7 @@
plugins {
id 'java'
id 'java'
id 'org.springframework.boot' version '3.4.5'
id 'io.spring.dependency-management' version '1.1.7'
id 'io.spring.dependency-management' version '1.1.7'
}
group = 'com.hithomelabs'
@ -45,9 +45,9 @@ repositories {
dependencies {
implementation group: 'org.springdoc', name: 'springdoc-openapi-starter-webmvc-ui', version: '2.8.5'
implementation group: 'org.springframework.boot', name:'spring-boot-starter-oauth2-client', version: '3.5.5'
implementation 'org.springframework.boot:spring-boot-starter-web'
compileOnly 'org.projectlombok:lombok:1.18.30'
annotationProcessor 'org.projectlombok:lombok:1.18.30'
implementation 'org.springframework.boot:spring-boot-starter-web'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.security:spring-security-test'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
@ -59,4 +59,4 @@ dependencies {
tasks.named('test') {
useJUnitPlatform()
}
}

View File

@ -1,11 +1,13 @@
package com.hithomelabs.CFTunnels;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* Main Spring Boot application class for Cloudflare Tunnels API.
*
*
* <p>This application provides a RESTful API for managing Cloudflare Tunnels,
* allowing users to create tunnel mappings to services with an approval workflow.</p>
*
*
* <p><b>Features:</b></p>
* <ul>
* <li>Create, update, and delete Cloudflare tunnels</li>
@ -13,7 +15,7 @@ package com.hithomelabs.CFTunnels;
* <li>Request/approval workflow for mapping changes</li>
* <li>OIDC-based authentication with role-based access</li>
* </ul>
*
*
* <p><b>Technology Stack:</b></p>
* <ul>
* <li>Java 17</li>
@ -23,10 +25,10 @@ package com.hithomelabs.CFTunnels;
* <li>H2 Database (configurable for PostgreSQL)</li>
* <li>Cloudflare API</li>
* </ul>
*
*
* <p>Access the API documentation at:
* {@code /swagger-ui.html} for the Swagger/OpenAPI UI</p>
*
*
* @see <a href="https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/install-negative">Cloudflare Tunnel Documentation</a>
* @since 1.0.0
*/

View File

@ -2,9 +2,9 @@ spring.application.name=CFTunnels
cloudflare.accountId=${CLOUDFLARE_ACCOUNT_ID}
cloudflare.apiKey=${CLOUDFLARE_API_KEY}
cloudflare.email=${CLOUDFLARE_EMAIL}
spring.profiles.active=${ENV}
spring.profiles.active=${ENV:default}
/ * * Masking sure app works behind a reverse proxy
# Making sure app works behind a reverse proxy
server.forward-headers-strategy=framework
spring.security.oauth2.client.registration.cftunnels.client-id=${OAUTH_CLIENT_ID}