Skip to content

Web app with Dokku-based deployment to expose a server directory through WebDAV

License

Notifications You must be signed in to change notification settings

PythonicCafe/dokku-apache2-webdav

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dokku-apache2-webdav

Web app with Dokku-based deployment to expose a server directory through WebDAV

Execute on the server:

# Change these variables
APP_NAME="myapp"
APP_DOMAIN="myapp.example.com"
ADMIN_EMAIL="admin@example.com"
USERNAME="myuser"
PASSWORD="mysecret"

# Create app, mount storage and set username/password
dokku apps:create "$APP_NAME"
dokku storage:mount "$APP_NAME" /var/lib/dokku/data/storage/$APP_NAME:/app/data
dokku config:set --no-restart "$APP_NAME" "USERNAME=$USERNAME"
dokku config:set --no-restart "$APP_NAME" "PASSWORD=$PASSWORD"
dokku domains:add "$APP_NAME" "$APP_DOMAIN"

Now, deploy your app from your local machine:

git clone <this-repo's-url>
cd dokku-apache2-webdav
git remote add dokku dokku@<dokku-host>:<myapp>
git push dokku main

Finally, back on server:

dokku letsencrypt:set "$APP_NAME" email "$ADMIN_EMAIL"
dokku letsencrypt:enable "$APP_NAME"

Now you can access https://$APP_DOMAIN/data using $USERNAME and $PASSWORD.

About

Web app with Dokku-based deployment to expose a server directory through WebDAV

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •