linkding

所属分类:Docker
开发工具:Python
文件大小:1362KB
下载次数:0
上传日期:2023-05-31 15:53:38
上 传 者sh-1993
说明:  自托管书签管理器被设计为最小、快速和易于使用Docker设置。
(Self-hosted bookmark manager that is designed be to be minimal, fast, and easy to set up using Docker.)

文件列表:
.coveragerc (50, 2023-09-26)
.devcontainer (0, 2023-09-26)
.devcontainer\devcontainer.json (895, 2023-09-26)
.dockerignore (441, 2023-09-26)
.env.sample (1997, 2023-09-26)
CHANGELOG.md (25160, 2023-09-26)
Dockerfile (3062, 2023-09-26)
LICENSE.txt (1084, 2023-09-26)
SECURITY.md (295, 2023-09-26)
assets (0, 2023-09-26)
assets\logo.afdesign (40177, 2023-09-26)
background-tasks-wrapper.sh (195, 2023-09-26)
bookmarks (0, 2023-09-26)
bookmarks\__init__.py (0, 2023-09-26)
bookmarks\admin.py (6122, 2023-09-26)
bookmarks\api (0, 2023-09-26)
bookmarks\api\__init__.py (0, 2023-09-26)
bookmarks\api\routes.py (4554, 2023-09-26)
bookmarks\api\serializers.py (3491, 2023-09-26)
bookmarks\apps.py (183, 2023-09-26)
bookmarks\context_processors.py (862, 2023-09-26)
bookmarks\e2e (0, 2023-09-26)
bookmarks\e2e\__init__.py (0, 2023-09-26)
bookmarks\e2e\e2e_test_bookmark_form.py (3522, 2023-09-26)
bookmarks\e2e\e2e_test_bookmark_item.py (817, 2023-09-26)
bookmarks\e2e\e2e_test_bookmark_page_bulk_edit.py (10400, 2023-09-26)
bookmarks\e2e\e2e_test_bookmark_page_partial_updates.py (11736, 2023-09-26)
bookmarks\e2e\e2e_test_global_shortcuts.py (960, 2023-09-26)
bookmarks\e2e\e2e_test_settings_general.py (1734, 2023-09-26)
bookmarks\e2e\helpers.py (1978, 2023-09-26)
bookmarks\feeds.py (1652, 2023-09-26)
bookmarks\frontend (0, 2023-09-26)
bookmarks\frontend\api.js (870, 2023-09-26)
... ...

## Overview - [Introduction](https://github.com/sissbruecker/linkding/blob/master/#introduction) - [Installation](https://github.com/sissbruecker/linkding/blob/master/#installation) - [Using Docker](https://github.com/sissbruecker/linkding/blob/master/#using-docker) - [Using Docker Compose](https://github.com/sissbruecker/linkding/blob/master/#using-docker-compose) - [User Setup](https://github.com/sissbruecker/linkding/blob/master/#user-setup) - [Reverse Proxy Setup](https://github.com/sissbruecker/linkding/blob/master/#reverse-proxy-setup) - [Managed Hosting Options](https://github.com/sissbruecker/linkding/blob/master/#managed-hosting-options) - [Documentation](https://github.com/sissbruecker/linkding/blob/master/#documentation) - [Browser Extension](https://github.com/sissbruecker/linkding/blob/master/#browser-extension) - [Community](https://github.com/sissbruecker/linkding/blob/master/#community) - [Acknowledgements](https://github.com/sissbruecker/linkding/blob/master/#acknowledgements) - [Development](https://github.com/sissbruecker/linkding/blob/master/#development) ## Introduction linkding is a bookmark manager that you can host yourself. It's designed be to be minimal, fast, and easy to set up using Docker. The name comes from: - *link* which is often used as a synonym for URLs and bookmarks in common language - *Ding* which is German for thing - ...so basically something for managing your links **Feature Overview:** - Clean UI optimized for readability - Organize bookmarks with tags - Add notes using Markdown - Read it later functionality - Share bookmarks with other users - Bulk editing - Automatically provides titles, descriptions and icons of bookmarked websites - Automatically creates snapshots of bookmarked websites on [the Internet Archive Wayback Machine](https://github.com/sissbruecker/linkding/blob/master/https://archive.org/web/) - Import and export bookmarks in Netscape HTML format - Extensions for [Firefox](https://github.com/sissbruecker/linkding/blob/master/https://addons.mozilla.org/de/firefox/addon/linkding-extension/) and [Chrome](https://github.com/sissbruecker/linkding/blob/master/https://chrome.google.com/webstore/detail/linkding-extension/beakmhbijpdhipnjhnclmhgjlddhidpe), as well as a bookmarklet - Light and dark themes - REST API for developing 3rd party apps - Admin panel for user self-service and raw data access - Easy setup using Docker and a SQLite database, with PostgreSQL as an option **Demo:** https://demo.linkding.link/ ([see here](https://github.com/sissbruecker/linkding/blob/master/https://github.com/sissbruecker/linkding/issues/408) if you have trouble accessing it) **Screenshot:** ![Screenshot](https://github.com/sissbruecker/linkding/blob/master//docs/linkding-screenshot.png?raw=true "Screenshot") ## Installation linkding is designed to be run with container solutions like [Docker](https://github.com/sissbruecker/linkding/blob/master/https://docs.docker.com/get-started/). The Docker image is compatible with ARM platforms, so it can be run on a Raspberry Pi. By default, linkding uses SQLite as a database. Alternatively linkding supports PostgreSQL, see the [database options](https://github.com/sissbruecker/linkding/blob/master/docs/Options.md#LD_DB_ENGINE) for more information. ### Using Docker To install linkding using Docker you can just run the [latest image](https://github.com/sissbruecker/linkding/blob/master/https://hub.docker.com/repository/docker/sissbruecker/linkding) from Docker Hub: ```shell docker run --name linkding -p 9090:9090 -v {host-data-folder}:/etc/linkding/data -d sissbruecker/linkding:latest ``` In the command above, replace the `{host-data-folder}` placeholder with an absolute path to a folder on your host system where you want to store the linkding database. If everything completed successfully, the application should now be running and can be accessed at http://localhost:9090. To upgrade the installation to a new version, remove the existing container, pull the latest version of the linkding Docker image, and then start a new container using the same command that you used above. There is a [shell script](https://github.com/sissbruecker/linkding/blob/master/https://github.com/sissbruecker/linkding/blob/master/install-linkding.sh) available to automate these steps. The script can be configured using environment variables, or you can just modify it. To complete the setup, you still have to [create an initial user](https://github.com/sissbruecker/linkding/blob/master/#user-setup), so that you can access your installation. ### Using Docker Compose To install linkding using [Docker Compose](https://github.com/sissbruecker/linkding/blob/master/https://docs.docker.com/compose/), you can use the [`docker-compose.yml`](https://github.com/sissbruecker/linkding/blob/master/https://github.com/sissbruecker/linkding/blob/master/docker-compose.yml) file. Copy the [`.env.sample`](https://github.com/sissbruecker/linkding/blob/master/https://github.com/sissbruecker/linkding/blob/master/.env.sample) file to `.env`, configure the parameters, and then run: ```shell docker-compose up -d ``` To complete the setup, you still have to [create an initial user](https://github.com/sissbruecker/linkding/blob/master/#user-setup), so that you can access your installation. ### User setup For security reasons, the linkding Docker image does not provide an initial user, so you have to create one after setting up an installation. To do so, replace the credentials in the following command and run it: **Docker** ```shell docker exec -it linkding python manage.py createsuperuser --username=joe --email=joe@example.com ``` **Docker Compose** ```shell docker-compose exec linkding python manage.py createsuperuser --username=joe --email=joe@example.com ``` The command will prompt you for a secure password. After the command has completed you can start using the application by logging into the UI with your credentials. Alternatively you can automatically create an initial superuser on startup using the [`LD_SUPERUSER_NAME` option](https://github.com/sissbruecker/linkding/blob/master/docs/Options.md#LD_SUPERUSER_NAME). ### Reverse Proxy Setup When using a reverse proxy, such as Nginx or Apache, you may need to configure your proxy to correctly forward the `Host` header to linkding, otherwise certain requests, such as login, might fail.
Apache Apache2 does not change the headers by default, and should not need additional configuration. An example virtual host that proxies to linkding might look like: ``` Order deny,allow Allow from all ProxyPass / http://linkding:9090/ ProxyPassReverse / http://linkding:9090/ ``` For a full example, see the docker-compose configuration in [jhauris/apache2-reverse-proxy](https://github.com/sissbruecker/linkding/blob/master/https://github.com/jhauris/linkding/tree/apache2-reverse-proxy) If you still run into CSRF issues, please check out the [`LD_CSRF_TRUSTED_ORIGINS` option](https://github.com/sissbruecker/linkding/blob/master/docs/Options.md#LD_CSRF_TRUSTED_ORIGINS).
Caddy 2 Caddy does not change the headers by default, and should not need any further configuration. If you still run into CSRF issues, please check out the [`LD_CSRF_TRUSTED_ORIGINS` option](https://github.com/sissbruecker/linkding/blob/master/docs/Options.md#LD_CSRF_TRUSTED_ORIGINS).
Nginx Nginx by default rewrites the `Host` header to whatever URL is used in the `proxy_pass` directive. To forward the correct headers to linkding, add the following directives to the location block of your Nginx config: ``` location /linkding { ... proxy_set_header Host $host; proxy_set_header X-Forwarded-Proto $scheme; } ```
Instead of configuring header forwarding in your proxy, you can also configure the URL from which you want to access your linkding instance with the [`LD_CSRF_TRUSTED_ORIGINS` option](https://github.com/sissbruecker/linkding/blob/master/docs/Options.md#LD_CSRF_TRUSTED_ORIGINS). ### Managed Hosting Options Self-hosting web applications still requires a lot of technical know-how, and commitment to maintenance, with regard to keeping everything up-to-date and secure. This can be a huge entry barrier for people who are interested in self-hosting, but lack the technical knowledge to do so. This section is intended to provide alternatives in form of managed hosting solutions. Note that these options are usually commercial offerings, that require paying a fee for the convenience of being managed by another party. The technical knowledge required to make use of individual options is going to vary, and no guarantees can be made that every option is accessible for everyone. That being said, I hope this section helps in making the application accessible to a wider audience. - [linkding on fly.io](https://github.com/sissbruecker/linkding/blob/master/https://github.com/fspoettel/linkding-on-fly) - Guide for hosting a linkding installation on [fly.io](https://github.com/sissbruecker/linkding/blob/master/https://fly.io). By [fspoettel](https://github.com/sissbruecker/linkding/blob/master/https://github.com/fspoettel) - [PikaPods.com](https://github.com/sissbruecker/linkding/blob/master/https://www.pikapods.com/) - Managed hosting for linkding, EU and US regions available. [1-click setup link](https://github.com/sissbruecker/linkding/blob/master/https://www.pikapods.com/pods?run=linkding) ## Documentation | Document | Description | |-------------------------------------------------------------------------------------------------|----------------------------------------------------------| | [Options](https://github.com/sissbruecker/linkding/blob/master/https://github.com/sissbruecker/linkding/blob/master/docs/Options.md) | Lists available options, and describes how to apply them | | [Backups](https://github.com/sissbruecker/linkding/blob/master/https://github.com/sissbruecker/linkding/blob/master/docs/backup.md) | How to backup the linkding database | | [Troubleshooting](https://github.com/sissbruecker/linkding/blob/master/https://github.com/sissbruecker/linkding/blob/master/docs/troubleshooting.md) | Advice for troubleshooting common problems | | [How To](https://github.com/sissbruecker/linkding/blob/master/https://github.com/sissbruecker/linkding/blob/master/docs/how-to.md) | Tips and tricks around using linking | | [Keyboard shortcuts](https://github.com/sissbruecker/linkding/blob/master/https://github.com/sissbruecker/linkding/blob/master/docs/shortcuts.md) | List of available keyboard shortcuts | | [Admin documentation](https://github.com/sissbruecker/linkding/blob/master/https://github.com/sissbruecker/linkding/blob/master/docs/Admin.md) | User documentation for the Admin UI | | [API documentation](https://github.com/sissbruecker/linkding/blob/master/https://github.com/sissbruecker/linkding/blob/master/docs/API.md) | Documentation for the REST API | ## Browser Extension linkding comes with an official browser extension that allows to quickly add bookmarks, and search bookmarks through the browser's address bar. You can get the extension here: - [Mozilla Addon Store](https://github.com/sissbruecker/linkding/blob/master/https://addons.mozilla.org/de/firefox/addon/linkding-extension/) - [Chrome Web Store](https://github.com/sissbruecker/linkding/blob/master/https://chrome.google.com/webstore/detail/linkding-extension/beakmhbijpdhipnjhnclmhgjlddhidpe) The extension is open-source as well, and can be found [here](https://github.com/sissbruecker/linkding/blob/master/https://github.com/sissbruecker/linkding-extension). ## Community This section lists community projects around using linkding, in alphabetical order. If you have a project that you want to share with the linkding community, feel free to submit a PR to add your project to this section. - [aiolinkding](https://github.com/sissbruecker/linkding/blob/master/https://github.com/bachya/aiolinkding) A Python3, async library to interact with the linkding REST API. By [bachya](https://github.com/sissbruecker/linkding/blob/master/https://github.com/bachya) - [Helm Chart](https://github.com/sissbruecker/linkding/blob/master/https://charts.pascaliske.dev/charts/linkding/) Helm Chart for deploying linkding inside a Kubernetes cluster. By [pascaliske](https://github.com/sissbruecker/linkding/blob/master/https://github.com/pascaliske) - [Linka!](https://github.com/sissbruecker/linkding/blob/master/https://github.com/cmsax/linka) Web app (also a PWA) for quickly searching & opening bookmarks in linkding, support multi keywords, exclude mode and other advance options. By [cmsax](https://github.com/sissbruecker/linkding/blob/master/https://github.com/cmsax) - [linkding-cli](https://github.com/sissbruecker/linkding/blob/master/https://github.com/bachya/linkding-cli) A command-line interface (CLI) to interact with the linkding REST API. Powered by [aiolinkding](https://github.com/sissbruecker/linkding/blob/master/https://github.com/bachya/aiolinkding). By [bachya](https://github.com/sissbruecker/linkding/blob/master/https://github.com/bachya) - [linkding-extension](https://github.com/sissbruecker/linkding/blob/master/https://github.com/jeroenpardon/linkding-extension) Chromium compatible extension that wraps the linkding bookmarklet. Tested with Chrome, Edge, Brave. By [jeroenpardon](https://github.com/sissbruecker/linkding/blob/master/https://github.com/jeroenpardon) - [linkding-injector](https://github.com/sissbruecker/linkding/blob/master/https://github.com/Fivefold/linkding-injector) Injects search results from linkding into the sidebar of search pages like google and duckduckgo. Tested with Firefox and Chrome. By [Fivefold](https://github.com/sissbruecker/linkding/blob/master/https://github.com/Fivefold) - [LinkThing](https://github.com/sissbruecker/linkding/blob/master/https://apps.apple.com/us/app/linkthing/id1666031776) An iOS client for linkding. By [amoscardino](https://github.com/sissbruecker/linkding/blob/master/https://github.com/amoscardino) - [Open all links bookmarklet](https://github.com/sissbruecker/linkding/blob/master/https://gist.github.com/ukcuddlyguy/336dd7339e6d35fc***a75ccfc9323c66) A browser bookmarklet to open all links on the current Linkding page in new tabs. By [ukcuddlyguy](https://github.com/sissbruecker/linkding/blob/master/https://github.com/ukcuddlyguy) - [Postman collection](https://github.com/sissbruecker/linkding/blob/master/https://gist.github.com/gingerbeardman/f0b42502f3bc9344e92ce63afd4360d3) a group of saved request templates for API testing. By [gingerbeardman](https://github.com/sissbruecker/linkding/blob/master/https://github.com/gingerbeardman) ## Acknowledgements JetBrains provides an open-source license of [IntelliJ IDEA](https://github.com/sissbruecker/linkding/blob/master/https://www.jetbrains.com/idea/) for the development of linkding. ## Development The application is open source, so you are free to modify or contribute. The application is built using the Django web framework. You can get started by checking out the excellent [Django docs](https://github.com/sissbruecker/linkding/blob/master/https://docs.djangoproject.com/en/4.1/). The `bookmarks` folder contains the actual bookmark application, `siteroot` is the Django root application. Other than that the code should be self-explanatory / standard Django stuff . ### Prerequisites - Python 3.10 - Node.js ### Setup Create a virtual environment for the application (https://docs.python.org/3/tutorial/venv.html): ``` python3 -m venv ~/environments/linkding ``` Activate the environment for your shell: ``` source ~/environments/linkding/bin/activate[.csh|.fish] ``` Within the active environment install the application dependencies from the application folder: ``` pip3 install -Ur requirements.txt ``` Install frontend dependencies: ``` npm install ``` Initialize database: ``` mkdir -p data python3 manage.py migrate ``` Create a user for the frontend: ``` python3 manage.py createsuperuser --username=joe --email=joe@example.com ``` Start the Node.js development server (used for compiling JavaScript components like tag auto-completion) with: ``` npm run dev ``` Start the Django development server with: ``` python3 manage.py runserver ``` The frontend is now available under http://localhost:8000 ### DevContainers This repository also supports DevContainers: [![Open in Remote - Containers](https://github.com/sissbruecker/linkding/blob/master/https://img.shields.io/static/v1?label=Remote%20-%20Containers&message=Open&color=blue&logo=visualstudiocode)](https://github.com/sissbruecker/linkding/blob/master/https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=git@github.com:sissbruecker/linkding.git) Once checked out, only the following commands are required to get started: Create a user for the frontend: ``` python3 manage.py createsuperuser --username=joe --email=joe@example.com ``` Start the Node.js development server (used for compiling JavaScript components like tag auto-completion) with: ``` npm run dev ``` Start the Django development server with: ``` python3 manage.py runserver ``` The frontend is now available under http://localhost:8000

近期下载者

相关文件


收藏者