Skip to content

Instantly share code, notes, and snippets.

@coolteddy
coolteddy / ! Mongo+TLS on Docker.md
Created August 23, 2023 08:33 — forked from nielsmaerten/! Mongo+TLS on Docker.md
MongoDB + MongoExpress over TLS on Docker

Secure MongoDB on Docker (incl MongoExpress, Let's Encrypt)

This gist contains files and instructions to setup MongoDB on a simple docker host.
Connections to Mongo are secured using TLS, and the certificate is signed using Let's Encrypt.
MongoExpress is included as well, but should only be used over an SSH tunnel.

  1. Update .env

  2. Make sure docker-compose is available

Required on GCP Cloud Optimized OS

@coolteddy
coolteddy / gist:194fb8f27088681db2e34f70685308fa
Created October 5, 2022 19:49 — forked from soardex/gist:5f47dc1e022697abe1400ec1601dfeb9
MongoDB Create And Authenticate Using Users
1. Connect to mongodb instance.
~~~
mongod --port 27017 --dbpath /data/db
~~~
2. Create user:
~~~
use admin
db.createUser(
{
@coolteddy
coolteddy / backports.pref
Created May 26, 2022 08:36 — forked from slav0nic/backports.pref
debian bullseye sources.list
Package: *
Pin: release n=bullseye-backports
Pin-Priority: 900
@coolteddy
coolteddy / curl.sh
Created July 14, 2021 12:46 — forked from FylmTM/curl.sh
Neo4j curl call example
#!/bin/bash
QUERY=query.json
time curl -i -XPOST \
-o output.log \
--data "@$QUERY" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
http://127.0.0.1:7474/db/data/transaction/commit
@coolteddy
coolteddy / README-Template.md
Created November 8, 2018 09:49 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@coolteddy
coolteddy / README.md
Created November 7, 2018 23:22 — forked from dnozay/_Jenkins+Script+Console.md
jenkins groovy scripts collection.