I am using obsidian to create a website for our project.
Publish notes directly from Obsidian to the internet by this extension: Obsidian Digital Garden
I referred to the following resources to create this website:
-
dangehub.github.io 's dockerfile and imporvements
-
first fork this repository, then clone it to your local machine.
-
change basic information in
.env
file and port indocker-compose.yml
file. -
write README for your website in
src/site/notes/README.md
-
commit and push your changes to your forked repository.
-
set extension in obsidian, and publish your notes to the forked repository.
-
run
docker compose up -d
to raise the webiste onlocalhost:port
-
use nginx to proxy_pass your webiste to your domain with ssl.
server {
listen 443 ssl;
server_name ansatz.work;
location / {
proxy_pass http://localhost:8080/;
}
}