Use custom domains at Nextcloud instance
Find a file
2024-10-02 21:03:11 -03:00
.github chore: remove unused files 2024-10-02 20:55:52 -03:00
.tx First commit 2024-02-19 21:53:20 -03:00
appinfo chore: bump dependencies 2024-10-02 20:51:35 -03:00
composer First commit 2024-02-19 21:53:20 -03:00
l10n First commit 2024-02-19 21:53:20 -03:00
lib Merge pull request #2 from LibreCodeCoop/feat/make-possible-use-multiple-image-types 2024-10-02 21:03:11 -03:00
tests chore: bump dependencies 2024-10-02 20:51:35 -03:00
themes/default Add support to favicon 2024-04-07 15:40:39 -03:00
vendor-bin chore: bump dependencies 2024-10-02 20:51:35 -03:00
.editorconfig First commit 2024-02-19 21:53:20 -03:00
.gitignore First commit 2024-02-19 21:53:20 -03:00
.l10nignore First commit 2024-02-19 21:53:20 -03:00
.php-cs-fixer.dist.php chore: bump dependencies 2024-10-02 20:51:35 -03:00
CHANGELOG.md First commit 2024-02-19 21:53:20 -03:00
CODE_OF_CONDUCT.md First commit 2024-02-19 21:53:20 -03:00
composer.json First commit 2024-02-19 21:53:20 -03:00
composer.lock chore: bump dependencies 2024-10-02 20:51:35 -03:00
LICENSE First commit 2024-02-19 21:53:20 -03:00
psalm.xml First commit 2024-02-19 21:53:20 -03:00
README.md First commit 2024-02-19 21:53:20 -03:00

Start contributing

Custom Domain

Use custom domains at Nextcloud instance

Setup

  • Install this app
  • Configuration
  • go to root folder of your nextcloud instance and run the follow commands:
# Group folders
occ app:enable --force groupfolders

## Customizations

Not mandatory, but maybe is important
```bash
# Hide development notice
occ config:system:set has_valid_subscription --value true --type boolean

# registration
occ app:enable --force registration
occ config:app:set registration show_fullname --value yes
occ config:app:set registration email_is_optional --value no
occ config:app:set registration disable_email_verification --value no
occ config:app:set registration enforce_fullname --value yes
occ config:app:set core shareapi_only_share_with_group_members --value yes

occ config:app:set files default_quota --value "50 MB"

occ config:app:set core shareapi_allow_share_dialog_user_enumeration --value yes

# System settings
## Set the min length of password
occ config:app:set password_policy minLength --value 8
## Disable Nextcloud knowledge database (help)
occ config:system:set knowledgebaseenabled --value false --type boolean
## use custom domain insteadof localhost when use occ commands
occ config:system:set overwrite.cli.url --value "https://CustomDomain.coop"

# Skeleton directory
# First, go to root folder of Nextcloud
mkdir -p data/appdata_`occ config:system:get instanceid`/custom_domain/skeleton
occ config:system:set skeletondirectory --value /data/appdata_`occ config:system:get instanceid`/custom_domain/skeleton

# Theme
occ config:app:set theming name --value "Custom Domain"
occ config:app:set theming slogan --value "Made with ❤️"
occ config:app:set theming url --value "https://CustomDomain.coop"
occ config:app:set theming color --value "#0082c9"
## This is mandatory if you want to use custom logo and background by domain
occ config:app:set theming logoMime --value "image/png"
occ config:app:set theming backgroundMime --value "image/png"

Theming

  • Inside the folder appdata_<instanceId>/custom_domain/theming you will need go create a folder with the domain of company
  • Inside the folder of company, create the file background and logo without extension.

    Logo need to be PNG and background need to be PNG to follow the defined at theming app at logoMime and backgroundMime setting

  • Refresh the cache of app data folder to update the metadata of new images:
    occ files:scan-app-data
    

Contributing

here