lyx0
3a364e7674
change favicon
2023-12-13 23:15:10 +01:00
lyx0
c221b22ad6
change favicon
2023-12-13 23:11:41 +01:00
lyx0
60b8e7ad2f
fix visibility of links in darkmode
2023-12-13 17:00:37 +01:00
lyx0
5b3ca839a3
fix visibility of links in darkmode
2023-12-13 16:53:53 +01:00
lyx0
64b61370a3
change tld
2023-11-03 14:54:54 +01:00
lyx0
fb9953edd1
change wording on index.html
2023-10-06 03:23:30 +02:00
lyx0
8ed6dbf55c
set max upload size through the config file instead
2023-10-06 03:16:53 +02:00
lyx0
4b3adfe1dd
dont use cache to build
2023-10-05 12:06:09 +02:00
lyx0
91a49b3e66
change hosting provider again xD
2023-09-29 20:30:12 +02:00
lyx0
40d63ab160
dont run docker as sudo
2023-09-29 20:29:59 +02:00
lyx0
7e25aaf09b
change hosting provider again xD
2023-09-29 18:17:27 +02:00
lyx0
fe8cc64463
change hosting provider
2023-09-20 14:37:55 +02:00
lyx0
e0255d63de
fix file path
2023-09-07 16:24:47 +02:00
lyx0
1787fca81a
jaf -> yaf
2023-09-04 20:49:33 +02:00
lyx0
0646161736
add caddy instructions
2023-09-04 19:09:12 +02:00
lyx0
9333520183
clarify FileDir configuration variable
2023-09-04 18:52:21 +02:00
lyx0
1d73f17d46
update readme, add docker-compose installation
2023-09-04 18:41:51 +02:00
lyx0
293a47e7b0
fix naming inconsistencies. jaf -> yaf
2023-09-04 18:16:09 +02:00
lyx0
f827f59650
add example Caddyfile
2023-09-04 18:09:38 +02:00
lyx0
74cf65ee1a
change port, fix build tag
2023-09-04 17:54:49 +02:00
lyx0
22735b6443
add docker-compose.yml and Makefile for local docker build and run
2023-09-04 17:50:26 +02:00
lyx0
894c04d0c7
rename to yaf in Dockerfile
2023-09-04 17:42:54 +02:00
noury
80ee9dfa96
change hosting provider
2023-09-02 22:25:52 +02:00
noury
0742b805e2
preserve original README as README.original
2023-07-14 14:21:25 +02:00
noury
43f2b32a08
change module name from sr.ht back to github
2023-07-14 14:16:23 +02:00
noury
b55740aad7
implement file expiration, add basic frontend
2023-07-14 14:11:38 +02:00
Leon Richardt
4d5f23377a
Merge pull request #16 from leon-richardt/feat/better-file-extension-detection
...
feat: improve file extension detection
2022-10-17 20:42:02 +02:00
Leon Richardt
2dc5c1b011
feat: improve file extension detection
...
If a file extension is explicitly specified in the upload name, it is
always used directly. Detection of common file extension combinations is
also performed. Currently, only ".tar.gz" and ".tar.xz" are detected. If
you would like to add support for more common combinations, please open
an issue or pull request.
If no file extension is explicitly specified, jaf falls back to MIME
type detection via the github.com/gabriel-vasile/mimetype library.
2022-10-17 20:36:24 +02:00
Leon Richardt
a885de840e
Merge pull request #13 from leon-richardt/fix/exif/do-not-abort-on-no-exif-data
...
fix(exif): don't abort upload on missing EXIF data
2022-08-23 23:10:31 +02:00
Leon Richardt
16d9fa28dd
fix(exif): don't abort upload on missing EXIF data
...
We now correctly test the error type
2022-08-23 23:09:21 +02:00
Leon Richardt
ffb88d9a58
Merge pull request #12 from leon-richardt/ref/error-on-unknown-config-key
...
ref: error out on unknown config keys
2022-08-23 12:20:43 +02:00
Leon Richardt
7985419e1e
ref: error out on unknown config keys
2022-08-23 12:04:56 +02:00
Leon Richardt
b3f6b5a590
Merge pull request #7 from leon-richardt/feat/scrub-exif
...
feat: add option to scrub EXIF tags on image files
2022-08-23 11:44:36 +02:00
Leon Richardt
e0afb453a5
feat: add option to scrub EXIF tags on image files
...
EXIF scrubbing can be enabled via the `ScrubExif` config key. When
enabled, all standard EXIF tags (as defined by the IFD mappings in the
go-exif library) are removed on uploaded JPEG and PNG images.
The `ExifAllowedIds` and `ExifAllowedPaths` config keys can be used to
selectively allow specific tags to survive the scrubbing. This can be
useful if you want to preserve image orientation information for
example. The IDs for standard tags can be found in [1].
The path specification for `ExifAllowedPaths` relies on the format
implemented in go-exif which is "documented" in machine-readable format
in [2]. Multiple paths can be specified, separated by a space. The
path format is as follows:
1. For tags in the main section: `IFD/<GroupName>/<FieldName>`.
Examples: `IFD/Orientation`, `IFD/Exif/Flash`,
`IFD/GPSInfo/GPSTimeStamp`. You will probably want to use both
[1] and [2] in combination if you plan to specify allowed tags by
path.
2. Tags in the thumbnail section follow the same format but paths
start with `IFD1/` instead of `IFD`.
[1]: https://exiv2.org/tags.html
[2]: a6301f85c8/assets/tags.yaml
2022-08-23 11:40:38 +02:00
Leon Richardt
445540c747
Merge pull request #11 from leon-richardt/ref/default-config
...
ref: provide default values for config items
2022-08-23 11:30:15 +02:00
Leon Richardt
4425398462
ref: provide default values for config items
2022-08-23 11:27:12 +02:00
Leon Richardt
413202a208
Merge pull request #9 from leon-richardt/ref/use-generics-for-testing
...
ref!: use generics to simply testing logic
2022-08-21 20:32:33 +02:00
Leon Richardt
172fff0edb
ref!: use generics to simply testing logic
...
Notably, this requires us to bump the Go version in order to use
generics. We now use Go 1.19.
2022-08-21 20:30:07 +02:00
Leon Richardt
fd1c79948a
Merge pull request #8 from pajlada/chore/ci-go-build-and-test
...
ci: Add build and test workflow
2022-08-21 14:00:59 +02:00
Rasmus Karlsson
667ea359ef
ci: Add build and test workflow
2022-08-19 20:50:01 +02:00
Leon Richardt
153f64e07f
Merge pull request #6 from leon-richardt/fix/FileDir-test-case
...
fix(config_test): update test expectation for `FileDir`
2022-08-18 22:07:22 +02:00
Leon Richardt
0d5b4543be
fix(config_test): update test expectation for FileDir
...
The value for FileDir was updated in PR #3 but we missed also updating
the test in config_test.go. This is a hint that we should maybe setup a
GitHub Action to run tests on PRs. :-)
2022-08-18 22:04:37 +02:00
Leon Richardt
52a39f1ab2
Merge pull request #4 from leon-richardt/doc/update-readme
...
doc(README): update `example.conf` excerpt
2022-08-14 13:45:28 +02:00
Leon Richardt
f6dee4c429
doc(README): update example.conf
excerpt
...
The value for `FileDir` was updated in PR #3 but we missed also updating
the `example.conf` excerpt accordingly.
2022-08-14 13:39:49 +02:00
Leon Richardt
df690928a7
Merge pull request #2 from pajlada/feat/add-dockerfile
...
Add Docker support
2022-08-14 13:34:12 +02:00
Rasmus Karlsson
e945a57a55
Create default FileDir directory in Dockerfile
2022-08-14 13:29:12 +02:00
Rasmus Karlsson
5cec67bfdb
Add port publishing with some documentation
2022-08-14 13:29:12 +02:00
Rasmus Karlsson
ae33975668
Rename docker-publish workflow jobs
2022-08-14 13:29:12 +02:00
Rasmus Karlsson
728e6452b3
Add Docker support
...
Instructions for how to build & use it added to README.md
Add GitHub workflow to publishing the docker image to the
GitHub Container Repository
2022-08-14 13:29:12 +02:00
Leon Richardt
6cb1b09386
Merge pull request #3 from pajlada/chore/update-example-filedir
...
Update example config FileDir to `/var/www/jaf/`
2022-08-14 13:27:34 +02:00