Skip to content

nextcloud-fpm

Version: License: AGPL--3.0--or--later


This is based on the upstream nextcloud image instead of our own. Because Nextcloud is already a pain in the ass as it is.

VariableDescriptionApp(s)Config Key(s)DefaultExample
NX_RUN_OPTIMIZERuns optimize/repair/migration scriptstruefalse
NX_POSTGRES_HOSTPostgres Database Hostsystemdbhost""192.168.1.100
NX_POSTGRES_NAMEPostgres Database Namesystemdbname""nextcloud
NX_POSTGRES_USERPostgres Database Usersystemdbuser""nextcloud
NX_POSTGRES_PASSWORDPostgres Database Passwordsystemdbpassword""my-secret
NX_POSTGRES_PORTPostgres Database Portsystemdbport54325555
NX_REDISEnable Redistruefalse
NX_REDIS_HOSTRedis Hostsystemredis:host""redis.local
NX_REDIS_PASSRedis Passwordsystemredis:password""my-secret
NX_REDIS_PORTRedis Portsystemredis:port63791234
NX_COLLABORAEnable Collaborafalsetrue
NX_COLLABORA_URLCollabora URLrichdocumentswopi_url \ public_wopi_url""https://collabora.example.com
NX_COLLABORA_ALLOWLISTCollabora WOPI Allow List (Comma Separated)richdocumentswopi_allowlist""172.16.0.0/12,10.0.0.0/12
NX_ONLYOFFICEEnable OnlyOfficefalsetrue
NX_ONLYOFFICE_URLOnlyOffice URLonlyofficeDocumentServerUrl""https://onlyoffice.example.com
NX_ONLYOFFICE_INTERNAL_URLOnlyOffice internal URLonlyofficeDocumentServerInternalUrl""http://onlyoffice.ix-onlyoffice.svc.cluster.local
NX_ONLYOFFICE_NEXTCLOUD_INTERNAL_URLNextcloud’s internal URL as OnlyOffice sees itonlyofficeStorageUrl""http://nextcloud.ix-nextcloud.svc.cluster.local
NX_ONLYOFFICE_VERIFY_SSLEnable or disable SSL verification when connecting to OnlyOffice document serveronlyofficeverify_peer_offtruefalse
NX_ONLYOFFICE_JWTOnlyOffice JWTonlyofficejwt_secret""random_string_of_characters
NX_ONLYOFFICE_JWT_HEADEROnlyOffice JWT Headeronlyofficejwt_header""Authorization
NX_CLAMAVEnable ClamAVfalsetrue
NX_CLAMAV_HOSTClamAV Hostfiles_antivirusav_host""clamav.local
NX_CLAMAV_PORTClamAV Portfiles_antivirusav_port""3310
NX_CLAMAV_STREAM_MAX_LENGTHClamAV Stream Max Lengthfiles_antivirusav_stream_max_length262144001048576
NX_CLAMAV_MAX_FILE_SIZEClamAV Max File Sizefiles_antivirusav_max_file_size-11048576
NX_CLAMAV_INFECTED_ACTIONClamAV Infected Actionfiles_antivirusav_infected_actiononly_logdelete
NX_NOTIFY_PUSHEnable Nextcloud Push Notificationsnotify_pushSee NX_NOTIFY_PUSH_URLtruefalse
NX_NOTIFY_PUSH_ENDPOINTNextcloud Push Notifications URLnotify_pushbase_endpoint""https://cloud.example.com/push
NX_IMAGINARYEnable Imaginarysystempreview_imaginary_urltruefalse
NX_PREVIEWSEnable Previews (Forced enabled if Imaginary is enabled)system / previewgeneratorsystem:enable_previews, system:enablePreviewProviders and see NX_PREVIEW_, NX_JPEG_QUALITYtruefalse
NX_PREVIEW_PROVIDERSSpace Separated list of Preview providers (Imaginary is added automatically if enabled)systemenabledPreviewProviders""JPEG PNG BPM
NX_PREVIEW_MAX_XMaximum width of preview imagesystempreview_max_x20481024
NX_PREVIEW_MAX_YMaximum height of preview imagesystempreview_max_y20481024
NX_PREVIEW_MAX_MEMORYMaximum memory for preview imagesystempreview_max_memory1024512
NX_PREVIEW_MAX_FILESIZE_IMAGEMaximum file size for image previewssystempreview_max_filesize_image5025
NX_JPEG_QUALITYJPEG Quality for previewssystem / previewgeneratorsystem:jpeg_quality / preview:jpeg_quality6080
NX_PREVIEW_HEIGHT_SIZESPreview height sizespreviewgeneratorheightSizes256512
NX_PREVIEW_WIDTH_SIZESPreview width sizespreviewgeneratorwidthSizes256 384512 1024
NX_PREVIEW_SQUARE_SIZESPreview square sizespreviewgeneratorsquareSizes32 25664 512
NX_ACTIVITY_EXPIRE_DAYSExpire days for activity appsystemactivity_expire_days9060
NX_TRASH_RETENTIONRetention time for deleted filessystemtrashbin_retention_obligationauto30,60
NX_VERSION_RETENTIONRetention time for old versionssystemversions_retention_obligationauto30,60
NX_DEFAULT_PHONE_REGIONDefault phone regionsystemdefault_phone_regionGRUS
NX_SHARED_FOLDER_NAMEName of shared foldersystemshare_folder_nameSharedCommon
NX_MAX_CHUNK_SIZEMaximum chunk sizefilesmax_chunk_size10485760104857600
NX_LOG_LEVELLog levelsystemloglevel20
NX_LOG_FILELog filesystemlogfile/var/www/html/data/nextcloud.log/logs/nextcloud.log
NX_LOG_FILE_AUDITAudit log filesystemlogfile_file/var/www/html/data/audit.log/logs/audit.log
NX_LOG_DATE_FORMATLog date formatsystemlogdateformatd/m/Y H:i:sD d/m/Y H:i:s
NX_LOG_TIMEZONELog timezonesystemlogtimezone$TZEurope/Athens
NX_OVERWRITE_HOSTOverwrite hostsystemoverwritehost""cloud.example.com
NX_OVERWRITE_CLI_URLOverwrite CLI URLsystemoverwrite.cli.url""https://cloud.example.com
NX_OVERWRITE_PROTOCOLOverwrite protocolsystemoverwriteprotocol""https
NX_TRUSTED_DOMAINSSpace Separated list of Trusted domainssystemtrusted_domains""localhost cloud.example.com
NX_TRUSTED_PROXIESSpace Separated list of Trusted proxiessystemtrusted_proxies""10.0.0.0/8 172.16.0.0./12 192.168.0.0/16
NX_CONFIG_FILE_PATHAbsolute path of the config.php file, used to determine if NC installed succesfuly/var/www/html/config/config.php/config/config.php
NX_FORCE_ENABLE_ALLOW_LOCAL_REMOTE_SERVERSSet allow_local_remote_servers to trueallow_local_remote_serversfalsetrue

Visit Nextcloud official documentation for more information about each Config key