755
Install TrueNAS Scale
- Install TrueNAS Scale. If install on single hard drive, need to split boot partition and data partition, then use zpool to create pool, export pool, then import pool in TrueNAS WebUI.
- Change TrueNAS http to 81 and https to 8443
Configure ACME with Cloudflare
To be edit
- Login to TrueNAS
- Add email into root account.
- Go to Certificate, then add “ACME DNS-Authenticators”
- Type the name, such as “Cloudflare”, and select “cloudflare” under Authenticator.
- Enter the root email address
- Go to Cloudflare portal and login it.
- Go to My Profile -> API Tokens
- Click Create Token, then “Get Start” under Custom Token
- Give a name for token
- In Permission add two entries
- Zone/Zone/Read
- Zone/DNS/Edit
- Click Continue, then click Create
- Copy the API Token
- Paste the API Token to API Token in TrueNAS
- Click Save
- Click Add under Certificate Signing Requests
- Enter CSR on name field
- Type is “Certificate Signing Request”
- Leave blank on Profile
- Click next till “Certificate Subject”
- Enter the details
- In Subject Alternative Names, put *.mydomainname.com
- Then click next till Save
- Click the spanner on right side of CSR just created
- Enter the cert name on identifier, such as “cert”
- Click “Terms of Services”
- Select “Let’s Encrypt Production Directory” under ACME Server Directory URI
- Select “Cloudflare” under Domains, which created on step 4-14 above.
- Click Save.
Install Truecharts
- Go to Applications, then Manage Catalogs, to Add Catalog
- Input below information for new catalog
Name = Truecharts
Catalog URL = https://github.com/truecharts/catalog
Branch = main
Trains = stable, enterprise, incubator - It will take around 10 mins to add the catalog
Install Cloudflared
- Install cloudflared
- Add Tunnel Token. The token generate from Cloudflare WebUI
- Go to Zero Trust->Access->Tunnels
- Create a new tunnel
- Copy the key from installer command
Install Traefik
- Install Traefik
- Change Entrypoints 80 and 443
Install NextCloud
- Create dataset on pool, for NextCloud Data.
- nextcloud-data
- nextcloud-app
- Set permission to www-data:www-data, and chmod as 775
- Install NextCloud with TrueCharts version
- Change username and password
- Change App html Storage and UserData Storage to Host Path
- Add a Manaul Custom Ingress
- Add Hosts, and input a hostname which target to access from external
- Add Path / with type as “Prefix”
- Add TLS-Settings, then Add Certificate Hosts
- Enter the same hostname as step 7
- Select Cert created on ACME part
- Click Save
Install Collabora
- Install Collabora
- Change username and password
- Enter the Server Name, this is same domain level of NextCloud. For example, if used nextcloud.xyz.com, then user collabora.xyz.com
- Change Certificate to cert which using the same certificate with NextCloud above.
Configure Collabora on NextCloud
- Login NextCloud
- Go to Apps, then download and enable NextCloud Office
- Go to Administration settings
- Go to NextCloud Office
- Select Use your own server, then put Collabora URL and Port
- Save it
Configure Cloudflare Tunnel
- Go to Cloudflare Tunnel again
- Select the tunnel created above
- Go to Public Hostname, to add a new entry
- Enter the subdomain used for nextcloud, and select the domain
- In Service part, select HTTPS as type, and put TrueNAS Scale IP Address with NextCloud Port
- Expand the “Additional application settings” and TLS
- Enable “No TLS Verify”
- Save it.
Refer –
https://truecharts.org/manual/SCALE/guides/getting-started/#adding-truecharts
https://www.truenas.com/docs/scale/scaletutorials/credentials/certificates/settingupletsencryptcertificates/
https://youtu.be/TJ5fDiDRcbU