Skip to content

Commit

Permalink
change gif
Browse files Browse the repository at this point in the history
  • Loading branch information
goktug97 committed Aug 15, 2020
1 parent c9b72f0 commit bc880c1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,25 +48,26 @@ Also make sure the emacs server is started; `M-x server-start RET`

## Expose Local files

![Graph](https://raw.githubusercontent.com/wandersoncferreira/org-roam-server/master/expose-local-files.gif)
![localfiles](https://raw.githubusercontent.com/goktug97/org-roam-server/master/local-files.gif)

If you want to expose your local files to be accessible through the Preview modal
page you can check perform the following actions:
If you want to expose your local files to be accessible through the Preview
modal page you can check perform the following actions:

```elisp
(setq org-roam-server-enable-access-to-local-files t
org-roam-server-webserver-prefix "/home/wand"
org-roam-server-webserver-prefix "/home"
org-roam-server-webserver-address "127.0.0.1:8887/"
org-roam-server-webserver-supported-extensions '("pdf" "mp4" "ogv"))
```

There are security reasons your browse disable this feature to be used, however if you are aware of
them and want to expose only in your local network your files, you can use a Web Server like
[Web Server Chrome](https://chrome.google.com/webstore/detail/web-server-for-chrome/ofhbbkphhbklhfoeikjpcbhemlocgigb)
and expose a specific *folder*.
There are security reasons your browse disable this feature to be used,
however if you are aware of them and want to expose only in your local
network your files, you can use a Web Server like `python3 -m http.server
8887` and expose a specific *folder*.

This *folder* needs to be setup in the `org-roam-server-webserver-prefix` and the address of the webserver
configured at `org-roam-server-webserver-address` variable.
This *folder* needs to be setup in the `org-roam-server-webserver-prefix`
and the address of the webserver configured at
`org-roam-server-webserver-address` variable.

Remember to keep your Web Server active in the background while navigating in your Roam Graph.

Expand Down
Binary file removed expose-local-files.gif
Binary file not shown.
Binary file added local-files.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit bc880c1

Please sign in to comment.