This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.post('/uploadFile',function (req,res) { | |
// create an incoming form object | |
var form = new formidable.IncomingForm(); | |
// specify that we want to allow the user to upload single files in a single request | |
form.multiples = false; | |
//keep the file upload extensions | |
form.keepExtensions = true; | |
// 500M limit | |
form.maxFieldsSize = 500 * 1024 * 1024; | |
// store all uploads in the /uploads directory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
apt-get remove -y docker docker-engine docker.io containerd runc | |
apt-get update | |
apt-get install -y \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg-agent \ | |
software-properties-common |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/false | |
# This file will be sourced in init.sh | |
# Namespace functions with provisioning_ | |
# https://raw.githubusercontent.com/ai-dock/stable-diffusion-webui/main/config/provisioning/default.sh | |
### Edit the following arrays to suit your workflow | |
DISK_GB_REQUIRED=30 |
OlderNewer