Josh
e7f3c91d0b
Update config.js
2022-09-19 15:46:47 +08:00
Josh
8bb198b73e
Remove firefox link
2022-09-17 12:33:03 +08:00
Marian Hähnlein
660f36e584
Change default value for custom css to empty string
2022-09-08 14:16:00 +02:00
timvisee
073accfe65
Revert "Update eslint & plugins"
...
This reverts commit 38746b86fd
.
2022-09-04 12:26:10 +02:00
Marian Hähnlein
d081affa38
Move injection of custom CSS from client to server
2022-08-19 13:17:59 +02:00
Marian Hähnlein
71372fcbc1
Replace tabs with spaces to maintain consistency
2022-08-19 13:11:30 +02:00
HrBingR
671390ca24
Added the ability for a user to define and set a custom locale
...
New environment variable CUSTOM_LOCALE allows a user to define a locale per the /public/locales directory (this should be listed in the docs, will create a pull request for that too).
If the environment variable is blank or invalid it reverts to previous behaviour of system + default locale. Fully tested the above as follows:
CUSTOM_LOCALE = 'nl' < This works correctly, translating to nl.
CUSTOM_LOCALE = 'HelloThere' < This reverts to previous behavior
CUSTOM_LOCALE = '' < Also reverts
#CUSTOM_LOCALE = < Also reverts
2022-08-13 02:25:19 +02:00
HrBingR
df9c7ea734
Merge branch 'timvisee:master' into master
2022-08-11 23:06:47 +02:00
HrBingR
e32ea7d0aa
Added the ability to define a custom footer via environment variables
...
Added the CUSTOM_FOOTER_TEXT and CUSTOM_FOOTER_URL environment variables.
If undefined, the default translated footer will display.
If only CUSTOM_FOOTER_TEXT is defined, only this defined text will display in place of the normal footer text.
If only CUSTOM_FOOTER_URL is defined then the defined URL will display.
If both variables are defined, the defined text will display as a link to the defined URL.
2022-08-11 23:04:45 +02:00
timvisee
96d53e4118
Merge branch 'master' of github.com:HrBingR/send into HrBingR-master
2022-08-11 10:06:45 +02:00
HrBingR
bce861bcaf
Added if check to see if user is using custom CSS
2022-08-10 22:55:51 +02:00
AaronDewes
38746b86fd
Update eslint & plugins
...
Also replace eslint-plugin-node with the maintained eslint-plugin-n
2022-08-09 15:26:25 +00:00
HrBingR
310271c10f
Added new environment variables for custom css, custom title, and custom description.
...
Fully tested using the Dockerfile, example can be found on https://fileshare.thenextweb.co.za
2022-08-08 00:37:17 +02:00
AaronDewes
55344f8a9d
Drop mkdirp
2022-07-26 17:23:19 +00:00
AaronDewes
44a25e4156
Update fluent
2022-07-26 11:03:10 +00:00
Nam PHAM
1a0ddf9a05
Disable check user when fxa is not enabled
2022-07-02 23:48:04 +02:00
Marian Hähnlein
560747106b
Add ability to change the branding
2022-05-02 13:38:16 +02:00
timvisee
58a0800384
Add package for extracted ipaddress format from convic
2022-04-25 10:30:48 +02:00
timvisee
1a923d21b5
Add DEFAULT_DOWNLOADS variable to set default download count
...
Fixes https://github.com/timvisee/send/issues/39
2021-06-04 14:03:58 +02:00
timvisee
175712cfbd
Add REDIS_USER and REDIS_DB configuration variables
...
See https://github.com/timvisee/send/issues/23#issuecomment-843925819
2021-05-19 12:01:01 +02:00
timvisee
20cf722b54
Correctly parse config string values from int array
2021-05-19 11:48:20 +02:00
Nick Sweeting
0ffc960523
add comments
2021-05-19 01:52:37 -04:00
Nick Sweeting
77ea05a233
also handle arrays of strings
2021-05-19 01:46:12 -04:00
Nick Sweeting
a6162f7142
fix indentation
2021-05-19 01:41:22 -04:00
Nick Sweeting
4a6a3dfc36
coerce DOWNLOAD_COUNTS and EXPIRE_TIMES_SECONDS into positive integer arrays
2021-05-19 01:39:14 -04:00
timvisee
512c9803bd
Enable base URL detection by default with npm start, remove FXA_CLIENT_ID
2021-05-07 13:07:26 +02:00
timvisee
4c45d6217d
Properly derive base URL as configured in file upload logic
...
Fixes https://github.com/timvisee/send/issues/29
2021-05-07 13:07:17 +02:00
Cullen Walsh
02e8cb264f
Add detect_base_url config
...
This diff adds the detect_base_url config, controlled by the
DETECT_BASE_URL env variable. When set to true, the BASE_URL setting is
ignored, and the base_url is derived from the request protocol and host
header.
Test Plan: Started up a local instance in my homelab, running docker
node:15 image with a nginx reverse proxy. Configured nginx to use the
same backend with multiple hostnames on https. Opened in browser and
confirmed og:url meta tag uses correct url.
2021-05-05 22:19:11 -07:00
Aaron
f5bb74e921
index.js: Add "data:" as an allowed image source in CSP
...
Signed-off-by: Aaron <admin@datahoarder.dev>
2021-04-21 21:40:15 +02:00
timvisee
1b6c5b8f97
Only set Redis client password if password is specified
...
This attempts to fix a Redis connection issue when the Redis password
is an empty string.
See https://github.com/timvisee/send-docker-compose/issues/3#issuecomment-822885578
2021-04-20 18:37:19 +02:00
piaoger gong
e2dde364eb
add env for redis pwd and port
2021-04-18 11:08:35 +08:00
timvisee
15d37da667
Remove obsolete anonymous limits
...
Related to https://gitlab.com/timvisee/send/-/issues/3
2021-04-12 15:19:02 +02:00
a0bc20aeb6
Remove metrics #4
2021-03-15 19:56:51 +01:00
timvisee
5b9c8301c7
Fix incorrect environment variable for config property
2021-02-05 02:24:48 +01:00
timvisee
6960cc75fa
Add configurable donate, CLI and DMCA and source links in footer
2021-01-27 00:21:03 +01:00
timvisee
3165086869
Remove legal page, add no affiliation text in footer
2021-01-09 19:14:42 +01:00
io mintz
44c03e355f
CSP: remove a bunch of unused mozilla-only domains and FXA domains
2020-11-13 22:24:38 +00:00
Danny Coates
28c48f51d1
set downloadMetadata.status to 404 on unfound downloads. fixes #1501
...
Co-authored-by: timvisee <tim@visee.me>
2020-10-16 15:52:28 +02:00
Danny Coates
b5ef1785ab
replaced fxa-geodb with load balancer header
...
Co-authored-by: timvisee <tim@visee.me>
2020-10-16 15:51:28 +02:00
Danny Coates
e909a3bae8
refactored storage, style tweaks
...
Co-authored-by: timvisee <tim@visee.me>
2020-10-16 15:47:56 +02:00
Danny Coates
4f273eca03
added oauth refresh token support
...
Co-authored-by: timvisee <tim@visee.me>
2020-10-16 15:46:24 +02:00
timvisee
45d5f41731
Remove Firefox branding from app name in front-end
2020-10-15 18:48:54 +02:00
Danny Coates
ccbcb69666
Merge pull request #1434 from MichaelPeter-Shockoe/master
...
modify connect-src of Content Security Policy to include dynamic wss URL based on configured base URL
2020-07-09 19:37:02 -07:00
Danny Coates
e6ff9e486b
Merge pull request #1063 from hbakhtiyor/patch-1
...
Convert ContentLength of storage to number
2020-07-09 19:34:33 -07:00
Danny Coates
17afd6ad58
Merge pull request #1416 from factorysh/s3_endpoint
...
Choose your endpoint.
2020-07-09 19:33:21 -07:00
Danny Coates
7dd1fcca9b
Merge pull request #1480 from jackyzy823/fxa-csp
...
Handle Content-Security-Policy for self hosting FxA
2020-07-09 19:31:06 -07:00
Danny Coates
3195ee7d16
Merge pull request #1465 from minvs1/redis-retry-configs
...
Allow to set custom retry parameters
2020-07-09 19:17:28 -07:00
jackyzy823
e2876b119d
add configs to handle content-security-policy correctly for custom fxa urls
2020-06-11 21:57:48 +08:00
Danny Coates
89469e3c9c
updated node to 12
2020-04-29 17:38:55 -07:00
minvs1
7aead375d8
Allow to set custom retry parameters
2020-04-21 23:30:39 +03:00