diff --git a/conf/config.js b/conf/config.js index 805dae7..335a298 100644 --- a/conf/config.js +++ b/conf/config.js @@ -168,6 +168,16 @@ const conf = convict({ default: 'https://__DOMAIN__', env: 'BASE_URL' }, + custom_title: { + format: String, + default: 'Send', + env: 'CUSTOM_TITLE' + }, + custom_description: { + format: String, + default: 'Encrypt and send files with a link that automatically expires to ensure your important documents don’t stay online forever.', + env: 'CUSTOM_DESCRIPTION' + }, detect_base_url: { format: Boolean, default: false, @@ -243,6 +253,16 @@ const conf = convict({ default: 'https://github.com/timvisee/send', env: 'SEND_FOOTER_SOURCE_URL' }, + custom_footer_text: { + format: String, + default: '', + env: 'CUSTOM_FOOTER_TEXT' + }, + custom_footer_url: { + format: String, + default: '', + env: 'CUSTOM_FOOTER_URL' + }, ui_color_primary: { format: String, default: '#0a84ff', @@ -253,6 +273,11 @@ const conf = convict({ default: '#003eaa', env: 'UI_COLOR_ACCENT' }, + custom_locale: { + format: String, + default: '', + env: 'CUSTOM_LOCALE' + }, ui_custom_assets: { android_chrome_192px: { format: String, @@ -303,6 +328,11 @@ const conf = convict({ format: String, default: '', env: 'UI_CUSTOM_ASSETS_WORDMARK' + }, + custom_css: { + format: String, + default: '', + env: 'UI_CUSTOM_CSS' } } }); diff --git a/conf/nginx.conf b/conf/nginx.conf index 36cfe25..e5ae0c1 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -9,6 +9,8 @@ location __PATH__/ { } location /api/ws { + + proxy_pass http://127.0.0.1:__PORT__; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host $http_host; proxy_http_version 1.1; @@ -17,5 +19,4 @@ location /api/ws { proxy_set_header Connection ""; proxy_connect_timeout 4000s; proxy_read_timeout 4000s; - proxy_pass http://127.0.0.1:__PORT__; } diff --git a/manifest.toml b/manifest.toml index 6381575..8cdc7ab 100644 --- a/manifest.toml +++ b/manifest.toml @@ -40,6 +40,7 @@ ram.runtime = "50M" [resources.sources.main] url = "https://github.com/timvisee/send/archive/refs/tags/v3.4.23.tar.gz" sha256 = "eed0e391050842413d300133a64cc76829e3ba1d69e113f6e5fdc3eda777fa2a" + autoupdate.strategy = "latest_github_tag" [resources.ports]