Commit Graph

17 Commits

Author SHA1 Message Date
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