mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-11-04 11:42:15 +00:00
* feat(joplin): optional SSL via nginx using ssl/certfile/keyfile (#3114) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * refactor(joplin): single minimal nginx config, fail fast on invalid cert Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs(joplin): changelog date format and spacing Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore(joplin): trim nginx defaults, document LAN access Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
43 lines
1.1 KiB
Plaintext
43 lines
1.1 KiB
Plaintext
# TLS front-end for Joplin, only started when ssl is enabled.
|
|
# Run nginx in foreground.
|
|
daemon off;
|
|
worker_processes auto;
|
|
|
|
# Write error log to Hass.io add-on log.
|
|
error_log /proc/1/fd/1 error;
|
|
|
|
events {
|
|
worker_connections 1024;
|
|
}
|
|
|
|
http {
|
|
access_log off;
|
|
server_tokens off;
|
|
|
|
map $http_upgrade $connection_upgrade {
|
|
default upgrade;
|
|
'' close;
|
|
}
|
|
|
|
server {
|
|
listen 22300 ssl;
|
|
client_max_body_size 0;
|
|
|
|
ssl_certificate /ssl/%%certfile%%;
|
|
ssl_certificate_key /ssl/%%keyfile%%;
|
|
|
|
location / {
|
|
proxy_pass http://127.0.0.1:22301;
|
|
proxy_http_version 1.1;
|
|
proxy_read_timeout 86400s;
|
|
proxy_send_timeout 86400s;
|
|
proxy_set_header Connection $connection_upgrade;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Host $http_host;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
}
|
|
}
|
|
}
|