This commit is contained in:
Éric Gaspar 2023-05-20 19:59:16 +02:00
parent 35809be3a3
commit 965d9ba6aa
3 changed files with 33 additions and 1 deletions

View File

@ -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 dont 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'
}
}
});

View File

@ -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__;
}

View File

@ -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]