Commit Graph

36 Commits

Author SHA1 Message Date
a0903b91e0 Add musl target to Makefile.toml
bump version
2021-08-12 15:48:02 +02:00
9d80f20e8a bump versions 2021-08-12 15:48:02 +02:00
b08c1a3fc2 moving the webserver out of the library 2021-08-12 15:48:02 +02:00
9bb6001adf updating dependencies 2021-08-12 15:48:02 +02:00
38800bb33c dependency cleanup, documentation 2021-08-12 15:48:02 +02:00
0a23b786b0 Add language switching, fix logout 2021-08-12 15:48:02 +02:00
06c2fd18bd remove tera dependency and html rendering code. 2021-08-12 15:48:02 +02:00
5da1d3fb16 remove unnessessary RefCell 2021-08-12 15:48:02 +02:00
93472c061e WIP: adding qrcodes 2021-08-12 15:48:02 +02:00
6b0daecd31 Add wasm live rendering of the Qr-Code only svg 2021-08-12 15:48:02 +02:00
a5cfdeff54 make link codes unaware of upper and lower case 2021-08-12 15:48:02 +02:00
aeac704e89 add offline feature to sqlx 2021-08-12 15:48:02 +02:00
9d42b010c1 fix delete message 2021-08-12 15:48:02 +02:00
d503d49917 update user functionality and cleanup 2021-08-12 15:48:02 +02:00
6837495eba initial create user 2021-08-12 15:48:02 +02:00
fc9b18141f Working user and link list, (big)restructure
This is now a workspace consisting of:
  * the pslink app (a wasm frontend for the admin interface)
  * the pslink binary
  * shared - modules for communication between the two above.
2021-08-12 15:48:02 +02:00
84625939de
Add more testcases 2021-04-18 16:11:43 +02:00
04170079d6
Add integration test for runserver 2021-04-18 11:38:07 +02:00
ce315c429c
Add integration tests, do not show secret in logs
The code is restructured so that the library contains the actix-web
code and the binary only does commandline parsing and running of
the lib.
2021-04-18 09:41:17 +02:00
6fd36936a3
Enable jaeger + opentracing logging 2021-04-12 16:32:59 +02:00
a3b757abad initial port to tracing 2021-04-11 13:14:11 +02:00
5950fa7370
Better logging and error handling 2021-04-10 12:30:05 +02:00
76b1f53120
Use the anyhow crate for Errors in the cli 2021-04-02 17:41:27 +02:00
583e9908bf
move the error to thiserror 2021-04-01 15:40:19 +02:00
218840432f
initial translatability 2021-03-30 13:18:13 +02:00
77f362368c
bump version + add release guides 2021-03-27 11:23:02 +01:00
81c636de56
Add offline compilablility (sqlx) 2021-03-27 10:14:14 +01:00
e8ff696006
working sqlx-port 2021-03-21 08:31:47 +01:00
e8f955220a
remove old dependency diesel_codegen 2021-03-15 15:40:31 +01:00
6a87a0b88c
Bump Version 2021-03-15 14:42:01 +01:00
ccb13ce4ad
Use unpatched version of actix-web-static-files 2021-03-15 14:33:45 +01:00
d5a4541b7a
bump version before publishing 2021-03-15 14:17:18 +01:00
a0aa251673
standalone binary
embed the sqlite3 library aswell as all the templates.
2021-03-09 11:24:58 +01:00
9512807eb3
Add command line interface
Add a command line interface to the binary and remove parts
that were hardcoded.

new --help is:

```
pslink 0.1.0
Dietrich <dietrich@teilgedanken.de>
A simple webservice that allows registered users to create short links including qr-codes.
Anyone can visit the shortened links. This is an ideal setup for small busines or for publishing papers.

USAGE:
    pslink [OPTIONS] [SUBCOMMAND]

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
        --db <database>              The path of the sqlite database [env: PSLINK_DATABASE=]  [default: links.db]
    -i, --hostip <internal_ip>       The host (ip) that will run the pslink service [env: PSLINK_IP=]  [default:
                                     localhost]
    -p, --port <port>                The port the pslink service will run on [env: PSLINK_PORT=]  [default: 8080]
    -t, --protocol <protocol>        The protocol that is used in the qr-codes (http results in slightly smaller codes
                                     in some cases) [env: PSLINK_PROTOCOL=]  [default: http]  [possible values: http,
                                     https]
    -u, --public-url <public_url>    The host url or the page that will be part of the short urls. [env:
                                     PSLINK_PUBLIC_URL=]  [default: localhost:8080]
        --secret <secret>            The secret that is used to encrypt the password database keep this as inacessable
                                     as possible. As commandlineparameters are visible to all users it is not wise to
                                     use this as a commandline parameter but rather as an environment variable. [env:
                                     PSLINK_SECRET=]  [default: ]

SUBCOMMANDS:
    runserver           Run the server
    create-admin        Create an admin user.
    generate-env        Generate an .env file template using default settings and exit
    migrate-database    Apply any pending migrations and exit
    help                Prints this message or the help of the given subcommand(s)
```
2021-03-07 19:14:34 +01:00
325cdfc9d4
Add PNG download of QR-Code 2021-02-07 17:49:13 +01:00
d64f205162
initial commit of slink 2021-02-04 15:07:55 +01:00