Installing an app¶
Apps can be installed from the
App Store menu item. Clicking on an app will display
information about the app.
Install button will show an install dialog:
Location field is the subdomain into which the app will be installed. Use the drop down
selector on the right to choose the domain into which the app will by installed.
If the subdomain field is empty, the app will be installed in the bare/naked domain (i.e
smartserver.io in the picture above).
Re-configuring an app¶
Clicking on the pencil button will bring up the app's configure dialog:
The configure dialog can be used for:
- Relocating an app to another subdomain
- Make the app available from another domain
- Specify the groups that can access the app
X-Frame-Optionsto make the app embeddable in another website
- Change the maximum amount of memory that the app can use
- Specify a
robots.txtto control indexing by search engines (Google, Bing, DDG)
- Setting up redirections
No data loss
Re-configuring an app is a non-destructive action. Existing app data will be retained.
Moving an app to another domain¶
Changing the location field in the app's configure dialog will move the app to another domain or subdomain:
No data loss
Moving an app to a new location is a non-destructive action. Existing app data will be migrated to the new domain.
Setting up redirections¶
Redirections can be setup from the
Advanced section in the app's configure dialog:
In the above example, anyone visiting
www.smartserver.space will be automatically redirected
to the bare domain (using HTTP 302).
The redirection feature preserves any URI components like subpaths in the original request.
Increasing the memory limit of an app¶
All apps are run with a memory limit to ensure that no app can bring down the whole Cloudron. The default memory limit of an app is set by the app author at packaging time. This limit is usually the minimum amount of memory required for the app. Cloudron admins are expected to tweak the memory limit of an app based on their usage.
When an app runs out of memory, Cloudron automatically restarts it and sends an OOM email notification to Cloudron admins.
The memory limit can be set by adjusting the slider in the Configure dialog's
Advanced Setting section.
Memory limit includes swap
The memory limit specified above is a combination of RAM and swap space to be allocated for the app. Cloudron allocates 50% of this value as RAM and 50% as swap.
Restricting app access to specific users¶
Many apps in Cloudron are integrated with Cloudron's user management. For such apps, one or more groups or users can be assigned to an app to restrict login. For apps not integrated with Cloudron user management, see the section on controlling the visibility of app icon in dashboard.
Note that Cloudron only handles authentication. Assigning roles to users is
done within the application itself. For example, changing a user to become a
author inside Wordpress has to be done within Wordpress.
Allow all users from this Cloudron- Any user in the Cloudron can access the app.
Only allow the following users and groups- Only the users and groups can access the app.
Visibility of app icon in dashboard¶
The Dashboard of a Cloudron user displays the apps that the user can access. For apps that use Cloudron Single Sign-on, the dashboard only displays an app if the user has access to it.
For apps configured to not use the Cloudron Single Sign-on (for example, some public app like a
Forum or Chat), the apps are displayed (by default) on the dashboard of all users. Admins
can control if an app appears in a user's dashboard using the
Dashboard Visibility option
in the app's configure UI.
Custom mailbox name¶
For apps that can send and/or receive email, Cloudron automatically creates a mailbox with
<location>.app. To change this mailbox name, click on
Configure in the app grid
and edit the mailbox name in the
Indexing by search engines (robots.txt)¶
Robots.txt file is a file served from the root of a website to indicate which parts must be indexed by a search
engine. The file follows the Robots Exclusion Standard.
Google has an excellent document about the semantics.
The robots.txt contents of an app can be set in the
Advanced settings of the app's configure dialog.
By default, Cloudron does not setup a robots.txt for apps. When unset, the app is free to provide it's own robots.txt.
In addition, the Cloudron admin page has a hardcoded robots.txt that disables indexing:
User-agent: * Disallow: /
Cloudron provides a web terminal that gives access to the app's file system. The web terminal can be used to:
- Introspect and modify the app's files
- Access and modify the app's database (mysql, postgres, mongodb, redis)
- Modify the app's data directory
- Upload files to the /tmp directory. You can then work on this file from the terminal.
- Download files and directories (as tar.gz) from the app.
- Install plugins
- Repair an app if a plugin installation failed or database needs some modification
Note that Cloudron runs apps as containers with a read-only file system. Only
/run (dynamic data),
/app/data (backup data) and
/tmp (temporary files) are writable at runtime.
The web terminal can be accessed by clicking the 'Terminal' icon.
Clicking the icon will pop up a new window. The terminal is essentially a shell into the app's file system.
To view the logs of an app, click the logs button on the app grid:
This will open up a popup dialog that display the logs:
Cloudron apps can be embedded into other websites by setting
X-Frame-Options. By default, this HTTP header is set to
SAMEORIGIN to prevent Clickjacking.
To allow embedding, enter the embedder website name in the
Advanced settings of the app's configure dialog.
For example, to embed the live chat application hosted on
www.domain.com, enter the value
https://www.domain.com in the
chat app's configure dialog.
ALLOW-FROM is not supported
in Chrome. You can safely ignore the
Invalid 'X-Frame-Options' header encountered message in the browser console.
Uninstall an app¶
An app can be uninstalled clicking the
Uninstalling an app immediately removes all data associated with the app from the Cloudron.
Backups are not removed
App backups are not removed when it is uninstalled and are only cleaned up based on the backup policy. Apps can always be re-instated from their backups using the CLI tool.
When doing website development, it is useful to have production and staging environments. Cloudron's backup and clone features can be used to create a workflow as follows:
- Install the app in
staging.domain.com. Do edits and development as desired.
- Once ready, make a 'snapshot' of the app by making an app backup
- Use the clone UI to install the app
The same mechanism above can be used bring latest production data to staging.
The Graphs view shows an overview of the disk and memory usage on your Cloudron.
Disk Usage graph shows you how much disk space you have left. Note that the Cloudron will
send the Cloudron admins an email notification when the disk is ~90% full.
Apps Memory graph shows the memory consumed by each installed app. You can click on each segment
on the graph to see the memory consumption over time in the chart below it.
System Memory graph shows the overall memory consumption on the entire Cloudron. If you see
the Free memory < 50MB frequently, you should consider upgrading to a Cloudron with more memory.
Installing Docker images or other non-Cloudron apps¶
Cloudron's approach to self-hosting means that it takes complete ownership of the server and only
tracks changes that are made via the web interface. For this reason, Cloudron does not support
installing apps via Docker or
snap. Any external changes made to the server (i.e other
than via the Cloudron web interface or API) may be lost across updates and at worst, might confuse
the Cloudron update mechanism putting your server at risk.
The best way to workaround this is to package the apps as Cloudron apps. Apps that have a Dockerfile can be trivially packaged for the Cloudron.