For educational reasons I've decided to create my own CA. Here is what I learned.
Lets get some context first.
| package heap | |
| import ( | |
| "math" | |
| ) | |
| type Interface interface { | |
| Len() int | |
| Less(i, j int) bool | |
| Swap(i, j int) |
| cd $pkgsrc/bootstrap | |
| OSX_SDK_PATH=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk ./bootstrap --unprivileged --full --prefix=/opt/pkg --varbase /opt/pkg/var --make-jobs=10 --prefer-native=yes | |
| # set in /opt/pkg/etc/mk.conf | |
| # OSX_SDK_PATH=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk | |
| # MAKE_JOBS=10 | |
| # cyrus-sasl | |
| cd $pkgsrc/net/libfetch |
| version: '3.8' | |
| services: | |
| postgres: | |
| # image: postgres:10.18-alpine | |
| image: postgres:13.4 | |
| restart: "no" | |
| # Performance tuning by http://pgtune.leopard.in.ua | |
| # DB Version: 10 | |
| # OS Type: linux |
| ARG PYTHON_VERSION=3.11 | |
| ARG ALPINE_VERSION=3.17 | |
| ARG POETRY_VERSION=1.3.2 | |
| ARG DEVBUILD | |
| FROM python:${PYTHON_VERSION}-alpine${ALPINE_VERSION} as build | |
| ARG ALPINE_VERSION | |
| ARG POETRY_VERSION | |
| ARG DEVBUILD | |
| RUN echo https://mirror.yandex.ru/mirrors/alpine/v${ALPINE_VERSION}/main > /etc/apk/repositories |
| services: | |
| app: | |
| volumes: | |
| - venv:/opt | |
| volumes: | |
| venv: | |
| driver: local | |
| driver_opts: | |
| type: none |
| services: | |
| excalidraw: | |
| image: vbogretsov/excalidraw:0.18 | |
| restart: on-failure | |
| ports: | |
| - 8000:80 | |
| environment: | |
| - VITE_APP_BACKEND_V2_GET_URL=https://storage/api/v2/scenes/ | |
| - VITE_APP_BACKEND_V2_POST_URL=https://storage/api/v2/scenes/ | |
| - VITE_APP_WS_SERVER_URL=http://room/ |