Skip to content

enhance(backend): allow disabling HTTP port completely#911

Open
eternal-flame-AD wants to merge 1 commit intomasterfrom
disable-http-listener
Open

enhance(backend): allow disabling HTTP port completely#911
eternal-flame-AD wants to merge 1 commit intomasterfrom
disable-http-listener

Conversation

@eternal-flame-AD
Copy link
Member

Resolves #910

Signed-off-by: Yumechi <yume@yumechi.jp>
@eternal-flame-AD eternal-flame-AD requested a review from a team as a code owner February 6, 2026 15:01
@codecov
Copy link

codecov bot commented Feb 6, 2026

Codecov Report

❌ Patch coverage is 0% with 16 lines in your changes missing coverage. Please review.
✅ Project coverage is 78.51%. Comparing base (1818c5d) to head (7a9978e).
⚠️ Report is 4 commits behind head on master.

Files with missing lines Patch % Lines
runner/runner.go 0.00% 16 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #911      +/-   ##
==========================================
- Coverage   78.70%   78.51%   -0.19%     
==========================================
  Files          57       57              
  Lines        2517     2523       +6     
==========================================
  Hits         1981     1981              
- Misses        397      403       +6     
  Partials      139      139              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.


hasListener := false

if conf.Server.Port >= 0 {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this instead be a enabled setting similar to the one for TLS? Should be default true.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess so, but it would be called GOTIFY_SERVER_ENABLED=false which semantically sounds funny.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GOTIFY_SERVER_ENABLED=false it really looks confusing... Some may even think that "huh? My server disabled? :p"
But we can use like
GOTIFY_PLAIN_SERVER_ENABLED=false
Or
GOTIFY_HTTP_SERVER_ENABLED=false

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What I am trying to say is the name of these keys are tied to the yaml hierarchy by the configor, so if we add a key side by side with the current "port" key it would be called GOTIFY_SERVER_SOMETHING, which I don't like.

But I guess we can use GOTIFY_SERVER_DISABLE_HTTP or GOTIFY_SERVER_HTTP_FUNC=on/off/redirect , both should be good options forward

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

HTTPS only mode (disable HTTP Permanently)

3 participants