Commit graph

83 commits

Author SHA1 Message Date
Felix Niederwanger 135ee9d329
Add public pastas
Add public pastas which are listed on the main page.
2023-01-14 16:13:01 +01:00
Felix Niederwanger 2367feec91
# This is a combination of 3 commits.
# This is the 1st commit message:

Add public pastas

Add public pastas which are listed on the main page.

# The commit message #2 will be skipped:

# ...

# The commit message #3 will be skipped:

# Improve webui
#
# Add public handling to webui
2023-01-14 16:12:31 +01:00
Felix Niederwanger 0fca18e731 Merge pull request 'Add content filename' (#1) from filename into main
Reviewed-on: https://codeberg.org/grisu48/pasta/pulls/1
2023-01-12 17:37:11 +00:00
Felix Niederwanger 5ce9043876
Add content filename
Add the ability to optionally also store the content filename.
2023-01-12 18:34:45 +01:00
Felix Niederwanger 0e93e017f3
Merge pull request #45 from grisu48/post
Fix upload not working issue
2022-08-09 16:21:26 +02:00
Felix Niederwanger 9218427a0b
Fix upload not working issue
Fix the issue that the web upload was not working. The issue was coming
from overwriting the multibody reader with r.Body.
2022-08-09 11:22:03 +02:00
Felix Niederwanger fb036c40cc
Merge pull request #43 from grisu48/doc
Improve the deployment documentation
2022-07-01 09:00:25 +02:00
Felix Niederwanger 87820e04cb
Improve the deployment documentation
Include code steps on how to setup pasta and improve the wording.
2022-07-01 08:58:37 +02:00
Felix Niederwanger 3a9c402698
Merge pull request #42 from grisu48/ghcr
Build container in github
2022-07-01 08:47:55 +02:00
Felix Niederwanger ad5bdcfd11
Build container in github
Add a CI for building the container in GitHub and improve the
documentation about using pasta as a container application.
2022-07-01 08:46:13 +02:00
Felix Niederwanger 08c762fa47
Merge pull request #40 from grisu48/fix
Fix the content handling of the input form
2022-07-01 08:29:29 +02:00
Felix Niederwanger 5025670328
Fix the content handling of the input form
Fix the content handling when data is passed via the input form. The
previous handling prevented e.g. curl links by consuming the request
body. Now the request body is only consumed in case of the POST form.

Add also a test to check the `curl` handling of the pasta server.
2022-06-30 16:34:06 +02:00
Felix Niederwanger 0d66b1569b
Merge pull request #37 from grisu48/textbox
Add textarea to index page
2022-04-30 18:04:37 +02:00
Felix Niederwanger 2ee99daf04
Add textarea to index page
Adds a text area to the index page so people can just dump stuff there
without uploading a file.

Bump go version to 1.16 as required by io.NopCloser.
2022-04-30 18:02:44 +02:00
Felix Niederwanger 4b7001765f
Merge pull request #35 from grisu48/env
Add support for environmental vars
2022-01-03 14:40:05 +01:00
Felix Niederwanger d70424d08f
Add support for environmental vars
Add support for configuring pastad via environmenal variables.
Adds also a test for the usage of the environmental variables.
2022-01-03 14:38:12 +01:00
Felix Niederwanger 7821b31904
Merge pull request #34 from grisu48/alias
Add aliases to pasta client
2021-12-29 19:55:48 +01:00
felix@feldspaten.org c8fa77b0f6
Add aliases to pasta client
Add configurable aliases to the pasta client. Aliases for remote
instances can be put into the ~/.pasta.toml file and defined via the
remote program parameter.
2021-10-14 13:32:53 +02:00
felix@feldspaten.org 823a1d761d
Tidy pastad workflow 2021-10-13 17:15:45 +02:00
felix@feldspaten.org ea0e484c03
Trigger the deploy action on releases
Trigger docker release event only on new releases
2021-10-13 17:14:13 +02:00
felix@feldspaten.org 05c843cc8c
Add docker CI
Auto-build container for dockerhub.
2021-10-13 17:05:22 +02:00
Felix Niederwanger 4b576530bf
Merge pull request #33 from grisu48/carbonara
Change bundle
2021-10-13 16:51:43 +02:00
felix@feldspaten.org 3e0e486930
Rewrite CreateDefaultConfigfile for go 1.14
Rewrite CreateDefaultConfigfile to not use os.WriteFile (introduced go
1.16) but routines to make it compatible with go 1.14
2021-10-13 16:50:17 +02:00
felix@feldspaten.org 2e48a28726
Create default config file
`pastad` creates now a default config file, if a config file has been
specified
2021-10-13 16:43:13 +02:00
felix@feldspaten.org f385cd7b28
Tidy example config
Fix some inconsistentcies and group settings better together
2021-10-13 16:25:17 +02:00
felix@feldspaten.org 1cf3f16d69
Fix overwrite of existing pastas.dat
The testsuite keeps a backup of the current pastas.dat and restores it
after running its tests to prevent spamming the local pastas.dat
2021-08-19 17:04:56 +02:00
felix@feldspaten.org 65f895d743
Improve security of pasta ID parsing
Allow only alphanumberic characters for the pasta ID parsing. This
should prevent possible traverse path attacks and possible other attacks
by malformed input IDs.
2021-08-19 16:37:34 +02:00
felix@feldspaten.org 3bcbe3c957
Update download repository 2021-06-18 11:50:20 +02:00
felix@feldspaten.org 7e4d566dff
Add static build targets 2021-06-18 11:46:00 +02:00
Felix Niederwanger 0bf6ad01fe
Merge pull request #31 from grisu48/tiny
Make tiny containers
2021-06-18 10:38:23 +02:00
felix@feldspaten.org 8d4e9ebc88
Make tiny containers
Base the container on scratch and build a static binary
2021-06-18 10:35:56 +02:00
Felix Niederwanger 65cac0d308
Merge pull request #30 from grisu48/expire
Expire pastas on client side
2021-06-18 10:28:23 +02:00
felix@feldspaten.org fc2465b987
Expire pastas on client side
Pastas will expire now also on the client side
2021-06-18 10:26:44 +02:00
Felix Niederwanger b6f4f8e405
Merge pull request #28 from pdostal/obs_readme
Include OBS build
2021-02-04 08:49:42 +01:00
Pavel Dostál 70a2bbf660
Make the OBS build possible
* Use go >= 1.13
 * Update the README.md
2021-02-04 08:24:13 +01:00
Felix Niederwanger 1fb1f41a80
Merge pull request #26 from pdostal/obs
Add go module definition file
2021-02-03 11:35:40 +01:00
Pavel Dostál d1d8cd8952
Add go.mod 2021-02-03 11:31:52 +01:00
Felix Niederwanger 3950e90753
Merge pull request #25 from grisu48/spam
Add spam protection
2021-02-01 18:24:08 +01:00
felix@feldspaten.org 378440525c Add primitive spam protection
Adds a spam protection to limit the number of requests per client
2021-02-01 11:22:08 +01:00
felix@feldspaten.org 143c1aeb8f Improved deploy script 2021-01-14 21:40:25 +01:00
Felix Niederwanger f76cf9ce13
Merge pull request #23 from grisu48/args
Add program arguments for pastad
2021-01-13 14:55:08 +01:00
felix@feldspaten.org 22ea74de4d Update Dockerfile to use internal mime types
This commit updates the container to use the internally prodivded
mime.types file instead of leaving it to the user to provide one in
the data directory.
2021-01-13 14:49:39 +01:00
felix@feldspaten.org 4fd7642149 Add program arguments
Add simple program arguments for pastad server
2021-01-08 14:40:58 +01:00
Felix Niederwanger e1613f4737
Merge pull request #20 from pdostal/rancheros
Add RancherOS section to README
2021-01-03 18:14:42 +01:00
Pavel Dostál 6e0c4fb4a6 Apply @tuxjz suggestions 2021-01-01 03:07:36 +01:00
Pavel Dostál 61f0d82bdd Add RancherOS section to README 2020-12-31 22:42:34 +01:00
felix@feldspaten.org 3d661eca43 Add deploy strategy 2020-12-18 14:21:41 +01:00
felix@feldspaten.org bf750fe62b Add deploy script 2020-12-18 14:19:48 +01:00
felix@feldspaten.org 9ab8536bc6 Add GitHub actions badge 2020-12-18 14:06:49 +01:00
Felix Niederwanger e02a76b919
Merge pull request #17 from grisu48/cryptorand
Use crypto/rand
2020-12-18 14:02:21 +01:00