Commit Graph

129 Commits

Author SHA1 Message Date
7d35357531
update categories and keywords 2021-03-15 14:06:28 +01:00
6c6d8d4d5b
Add branding .env variables and remove hard coded.
New Variables (including matching commandline parameters):
* PSLINK_EMPTY_FORWARD_URL
* PSLINK_BRAND_NAME
2021-03-11 12:54:09 +01:00
23fa296ceb
Add README.md 2021-03-09 14:07:05 +01:00
8fd62a788b
Add public url to server start log.
fixes #11
2021-03-09 11:59:52 +01:00
56ab3ea893 Fix: Create admin promote correct account
fixes #10
2021-03-09 11:52:12 +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
0553aaa935
Add permissions to the page 2021-02-14 22:28:34 +01:00
72be8e693a
migrations for user roles 2021-02-10 09:12:42 +01:00
8cb121b568
Add creation of the initial user to the main func 2021-02-10 09:09:17 +01:00
d3465b4e10
Adding click statistics
closes #2
2021-02-09 21:30:11 +01:00
32a2151ba0
Fix empty code for fhs.li 2021-02-09 14:41:29 +01:00
a0a1065295
Make the links and users list scrollable
closes #6
2021-02-09 14:19:48 +01:00
10933dd48b
Adding user view
closes #7
2021-02-09 14:06:34 +01:00
5d28707e18
Adding Dangerzone and deletion of links
closes #9
2021-02-09 08:01:32 +01:00
d451a4f05c
Make links editable
closes #4
2021-02-08 20:44:32 +01:00
0297aafbff
save instead of edit 2021-02-08 19:38:36 +01:00
258a05e83d
add sorting functionality to the tables
closes #3
2021-02-08 19:25:08 +01:00
a99e20d1e6
Fix logging 2021-02-08 14:11:33 +01:00
a71ba86e45
Add editable user profiles
fixes: #5
2021-02-08 12:39:28 +01:00
c9c29748b2
make smaller qrcodes 2021-02-07 21:22:36 +01:00
d7fcfea808
fix links 2021-02-07 21:15:52 +01:00
fb9c1d6f29
redesign headline 2021-02-07 20:42:00 +01:00
10fb186632
make table layout in overview 2021-02-07 20:35:45 +01:00
325cdfc9d4
Add PNG download of QR-Code 2021-02-07 17:49:13 +01:00
b7f7c429de
SeeOther instead of TemporaryRedirect 2021-02-05 19:57:37 +01:00
051d55a936
disable caching 2021-02-05 19:10:41 +01:00
5d354800b5
fix links 2021-02-05 17:00:47 +01:00
d64f205162
initial commit of slink 2021-02-04 15:07:55 +01:00