Save POSTed JSON in a SQLite database.
./build_docker.sh
./run_docker.sh
curl --header "Content-Type: application/json" \
--request POST \
--data '{"some":"data","more":"data"}' \
https://lab1.algorithmwatch.org/pushdataOP1MP0Unv0H84ZENIgMA
./deploy.sh
location /pushdataOP1MP0Unv0H84ZENIgMA {
proxy_pass http://localhost:5000;
}
[Unit]
Description=simple storage
Requires=docker.service
After=docker.service
[Service]
Restart=always
ExecStart=/usr/bin/docker start -a simplestorage
ExecStop=/usr/bin/docker stop simplestorage
[Install]
WantedBy=multi-user.target