diff --git a/README.md b/README.md index 0086e2c..911d8ab 100644 --- a/README.md +++ b/README.md @@ -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 "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 + // or use a local image + "avatar": "/avatar.png", "background": { // If you want to use a custom (not dark) background "showBackground": true, // Whether it is enabled or not @@ -45,7 +47,9 @@ Simple Links is a lightweight alternative to Linktree and others. "enabled": true, "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 "infoCard": { diff --git a/config.json b/config.json index 3d33b06..4f3d741 100644 --- a/config.json +++ b/config.json @@ -2,7 +2,7 @@ "configVersion": "0.1.2", "name": "Your Name", "description": "A description about yourself", - "avatar": "https://cdn.fascinated.cc/KWprz2.jpg", + "avatar": "/avatar.png", "background": { "showBackground": true, "blur": true, @@ -10,7 +10,7 @@ "enabled": true, "amount": 0.7 }, - "backgroundImage": "https://cdn.fascinated.cc/8twdW8.jpg" + "backgroundImage": "/background.jpg" }, "theme": "dark", "infoCard": { diff --git a/docker-compose.yml b/docker-compose.yml index 1308a6a..3a055e0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,4 +14,5 @@ services: ports: - 3000:3000 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 diff --git a/public/avatar.png b/public/avatar.png new file mode 100644 index 0000000..20e3c78 Binary files /dev/null and b/public/avatar.png differ diff --git a/public/background.jpg b/public/background.jpg new file mode 100644 index 0000000..ce3c625 Binary files /dev/null and b/public/background.jpg differ