Skip to content

Commit

Permalink
feat: expose Local REST API obsidian plugin port
Browse files Browse the repository at this point in the history
  • Loading branch information
sytone committed Mar 27, 2022
1 parent 9fc1163 commit 1bcc9c5
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ ENV \
COPY root/ /

EXPOSE 8080
EXPOSE 27123
EXPOSE 27124
VOLUME ["/config","/vaults"]


6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ docker run -d `

### Ports

Port 8080 is mapped by default to the web interface.
| Port | Description |
| ----- | --------------------------------------- |
| 8080 | Obsidian Web Interface |
| 27123 | Local REST API Plugin HTTP Server Port |
| 27124 | Local REST API Plugin HTTPS Server Port |

### Mapped Volumes

Expand Down
6 changes: 6 additions & 0 deletions root/etc/cont-init.d/50-config
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,13 @@ if [ ! -d /vaults ]; then
mkdir -p /vaults;
fi

echo "********************************"
echo "**** Debug Information ****"
echo "********************************"
echo ""
echo "********************************"
echo "**** Start Date Information ****"
echo "********************************"
echo "TZ: ${TZ}"
echo "Date UTC"
date --utc
Expand All @@ -24,6 +29,7 @@ echo "Zone Info"
zdump /usr/share/zoneinfo/${TZ}
echo "Time Zone Offsets"
zdump -v /etc/localtime
echo "********************************"
echo "**** End Date Information ****"
echo "********************************"

Expand Down

0 comments on commit 1bcc9c5

Please sign in to comment.