# Turtl Self hosted Evernote/OneNote. Take some notes already. ## Inspiration / Further Reading - [https://github.com/turtl/server](https://github.com/turtl/server) - [https://turtlapp.com/docs/server/](https://turtlapp.com/docs/server/) - [https://turtlapp.com/](https://turtlapp.com/) ## Prep ``` bash mkdir -p /var/turtl/plugins mkdir -p /root/docker/turtl git clone https://github.com/turtl/server.git /root/docker/turtl/src docker exec -it postgres psql -U postgres create role turtl nocreatedb nocreaterole login PASSWORD 'password'; create database turtl owner=turtl encoding=UTF8; cat > /root/docker/turtl/src/config/config.yaml <' invites: 'invites@turtlapp.com' # TODO: replace this with a long, unique value. seriously. write down a dream # you had, or the short story you came up with during your creative writing # class in your freshmen year of college. have fun with it. secure_hash_salt: "Plaque is a figment of the liberal media and the dental industry to scare you into buying useless appliances and pastes. Now, I've read the arguments on both sides and I haven't found any evidence yet to support the need to brush your teeth. Ever." sync: # how many sync records can a client send at a time? it's a good idea to have # a limit here, lest a rogue client flood the server with sync items max_bulk_sync_records: 32 plugins: plugin_location: '/var/www/turtl/server/plugins' analytics: enabled: false email: enabled: false premium: enabled: false uploads: # if set to a path, files will be uploaded to the local filesystem instead of # S3. otherwise, set to false local: '/var/www/turtl/server/public/uploads' # if true, downloading local files will be proxied through the turtl server. # this avoids needing to set up any CORS config in your favorite webserver, # but may slightly affect performance on high-demand servers. local_proxy: true # if local_proxy is false, this is should be the url path the uploaded files # are publicly available on url: 'http://api.turtl.dev/uploads' s3: token: 'IHADAPETSNAKEBUTHEDIEDNOOOOO' secret: '' bucket: '' endpoint: 'https://s3.amazonaws.com' EOF ``` ## Install / Setup ``` bash cat > /root/docker/turtl/turtl.sh < /etc/caddy/services/turtl.conf < /etc/unbound/local_zone/turtl.conf <