added guide on using local images
All checks were successful
Publish Docker Image / docker (push) Successful in 1m54s

This commit is contained in:
Lee 2023-07-10 08:22:17 +01:00
parent 9a13ee1649
commit 154c5959c2
5 changed files with 9 additions and 4 deletions

@ -36,6 +36,8 @@ Simple Links is a lightweight alternative to Linktree and others.
"name": "Your Name", // The name you want to display on the site "name": "Your Name", // The name you want to display on the site
"description": "A description about yourself", // The description you want to use "description": "A description about yourself", // The description you want to use
"avatar": "https://cdn.fascinated.cc/KWprz2.jpg", // The avatar that is shown at the top of the site "avatar": "https://cdn.fascinated.cc/KWprz2.jpg", // The avatar that is shown at the top of the site
// or use a local image
"avatar": "/avatar.png",
"background": { "background": {
// If you want to use a custom (not dark) background // If you want to use a custom (not dark) background
"showBackground": true, // Whether it is enabled or not "showBackground": true, // Whether it is enabled or not
@ -45,7 +47,9 @@ Simple Links is a lightweight alternative to Linktree and others.
"enabled": true, "enabled": true,
"amount": 0.7 "amount": 0.7
}, },
"backgroundImage": "https://cdn.fascinated.cc/8twdW8.jpg" // The image to use in the background "backgroundImage": "https://cdn.fascinated.cc/8twdW8.jpg", // The image to use in the background
// or use a local image
"backgroundImage": "/background.jpg"
}, },
"theme": "dark", // "dark" or "light" themes "theme": "dark", // "dark" or "light" themes
"infoCard": { "infoCard": {

@ -2,7 +2,7 @@
"configVersion": "0.1.2", "configVersion": "0.1.2",
"name": "Your Name", "name": "Your Name",
"description": "A description about yourself", "description": "A description about yourself",
"avatar": "https://cdn.fascinated.cc/KWprz2.jpg", "avatar": "/avatar.png",
"background": { "background": {
"showBackground": true, "showBackground": true,
"blur": true, "blur": true,
@ -10,7 +10,7 @@
"enabled": true, "enabled": true,
"amount": 0.7 "amount": 0.7
}, },
"backgroundImage": "https://cdn.fascinated.cc/8twdW8.jpg" "backgroundImage": "/background.jpg"
}, },
"theme": "dark", "theme": "dark",
"infoCard": { "infoCard": {

@ -14,4 +14,5 @@ services:
ports: ports:
- 3000:3000 - 3000:3000
volumes: volumes:
- ./config.json:/usr/src/app/config.json:ro - ./config.json:/usr/src/app/config.json:ro # The application config (Must be created before starting the service)
- ./public:/usr/src/app/public:ro # Used for public facing images

BIN
public/avatar.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 161 KiB

BIN
public/background.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 852 KiB