Skip to content

Instantly share code, notes, and snippets.

@nicola88
Last active July 4, 2023 06:30
Show Gist options
  • Select an option

  • Save nicola88/f5cfb1b9a1319a58925fd573e76b8821 to your computer and use it in GitHub Desktop.

Select an option

Save nicola88/f5cfb1b9a1319a58925fd573e76b8821 to your computer and use it in GitHub Desktop.
Nextcloud on AWS
# Install Nextcloud stack
sudo snap install nextcloud
# Create administrator account
sudo nextcloud.manual-install <admin_username> <admin_password>
# Configure trusted domains (only localhost by default)
sudo nextcloud.occ config:system:get trusted_domains
sudo nextcloud.occ config:system:set trusted_domains 1 --value=<dns-domain>
# Set 512M as PHP memory limit
sudo snap get nextcloud php.memory-limit # Should be 512M
sudo snap set nextcloud php.memory-limit=512M
# Set background jobs interval (e.g. checking for new emails, update RSS feeds, ...)
sudo snap set nextcloud nextcloud.cron-interval=10m # Default: 15m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment