This is a plugin for Obsidian (https://obsidian.md).
It allows you to host obsidian subfolders as static file servers.
Why?
There are a number of reasons why one might want to do this
- Embed websites in your vault that work offline
- Embed websites with CORS issues
- Access your vault files from other applications
- Install the plugin
- Make a folder in your vault
- Put some files in the folder
- Open
Static File Server Settings
and enter the name of the folder and a port number. - You can now display the files in an iframe
- For example, a file called
example.html
could be accessed with
<iframe src="http://localhost:1337/example.html"/>
- For example, a file called
Feel free to contribute.
You can create an issue to report a bug, suggest an improvement for this plugin, ask a question, etc.
You can make a pull request to contribute to this plugin development.
- Hopefully resolved issue #1. Ports are now always validated before the servers are started.
- Fix various issues mentioned by lishind in (this the community plugin list PR)[obsidianmd/obsidian-releases#304 (comment)]
- Remove error logging (error messages can still be found in the network tab of developer tools.)
- The folder path should not be prefixed with a
/
. Changed the placeholder frome.g. /somepath
toe.g. FolderName
- Basic functionality of the plugin implemented
Obsidian Static File Server is licensed under the GNU AGPLv3 license. Refer to LICENSE for more information.