* EE-319: backup endpoint (#193) * feat(backup): * add an orbiter to block writes while backup * add backup handler * add an ability to tar.gz a dir * add aes encryption support * EE-320: restore endpoint (#196) * feat(backup): * add restore handler * re-init system state after restore * feat(backup): Update server to respect readonly lock (#199) * feat(backup): EE-322 Add backup and restore screen (#198) Co-authored-by: Simon Meng <simon.meng@portainer.io> * name archive as portainer-backup_yyyy-mm-dd_hh-mm-ss * backup custom templates and edge jobs * restart http and proxy servers after restore to re-init internal state * feat(backup): EE-322 hide password field if password protect toggle is off * feat(backup): EE-322 add tooltip for password field of restore backup * feat(backup): EE-322 wait for backend restart after restoring * Shutdown background go-routines * changed restore err message when cannot extract * fix: symlinks are ignored from backups * replace single admin check with a restartable monitor (#238) * clean log Co-authored-by: Maxime Bajeux <max.bajeux@gmail.com> Co-authored-by: cong meng <mcpacino@gmail.com> Co-authored-by: Simon Meng <simon.meng@portainer.io>
32 lines
1.7 KiB
JavaScript
32 lines
1.7 KiB
JavaScript
angular
|
|
.module('portainer')
|
|
.constant('API_ENDPOINT_AUTH', 'api/auth')
|
|
.constant('API_ENDPOINT_DOCKERHUB', 'api/dockerhub')
|
|
.constant('API_ENDPOINT_CUSTOM_TEMPLATES', 'api/custom_templates')
|
|
.constant('API_ENDPOINT_EDGE_GROUPS', 'api/edge_groups')
|
|
.constant('API_ENDPOINT_EDGE_JOBS', 'api/edge_jobs')
|
|
.constant('API_ENDPOINT_EDGE_STACKS', 'api/edge_stacks')
|
|
.constant('API_ENDPOINT_EDGE_TEMPLATES', 'api/edge_templates')
|
|
.constant('API_ENDPOINT_ENDPOINTS', 'api/endpoints')
|
|
.constant('API_ENDPOINT_ENDPOINT_GROUPS', 'api/endpoint_groups')
|
|
.constant('API_ENDPOINT_MOTD', 'api/motd')
|
|
.constant('API_ENDPOINT_REGISTRIES', 'api/registries')
|
|
.constant('API_ENDPOINT_RESOURCE_CONTROLS', 'api/resource_controls')
|
|
.constant('API_ENDPOINT_SETTINGS', 'api/settings')
|
|
.constant('API_ENDPOINT_STACKS', 'api/stacks')
|
|
.constant('API_ENDPOINT_STATUS', 'api/status')
|
|
.constant('API_ENDPOINT_SUPPORT', 'api/support')
|
|
.constant('API_ENDPOINT_USERS', 'api/users')
|
|
.constant('API_ENDPOINT_TAGS', 'api/tags')
|
|
.constant('API_ENDPOINT_TEAMS', 'api/teams')
|
|
.constant('API_ENDPOINT_TEAM_MEMBERSHIPS', 'api/team_memberships')
|
|
.constant('API_ENDPOINT_TEMPLATES', 'api/templates')
|
|
.constant('API_ENDPOINT_WEBHOOKS', 'api/webhooks')
|
|
.constant('API_ENDPOINT_BACKUP', 'api/backup')
|
|
.constant('DEFAULT_TEMPLATES_URL', 'https://raw.githubusercontent.com/portainer/templates/master/templates.json')
|
|
.constant('PAGINATION_MAX_ITEMS', 10)
|
|
.constant('APPLICATION_CACHE_VALIDITY', 3600)
|
|
.constant('CONSOLE_COMMANDS_LABEL_PREFIX', 'io.portainer.commands.')
|
|
.constant('PREDEFINED_NETWORKS', ['host', 'bridge', 'none'])
|
|
.constant('KUBERNETES_SYSTEM_NAMESPACES', ['kube-system', 'kube-public', 'kube-node-lease', 'portainer']);
|