Skip to content

Commit 8b9b54c

Browse files
author
LeCrabe
committed
feat(applications): add specific var env for apps
1 parent 91c6a5f commit 8b9b54c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+1506
-292
lines changed

docs/resources/docker.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ resource "clevercloud_docker" "docker_instance" {
4444

4545
- `app_folder` (String) Folder in which the application is located (inside the git repository)
4646
- `build_flavor` (String) Use dedicated instance with given flavor for build phase
47+
- `buildx` (Boolean) Set to true to use buildx to build the Docker image
4748
- `container_port` (Number) Set to custom HTTP port if your Docker container runs on custom port
4849
- `container_port_tcp` (Number) Set to custom TCP port if your Docker container runs on custom port.
4950
- `daemon_socket_mount` (Boolean) Set to true to access the host Docker socket from inside your container

docs/resources/frankenphp.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,21 @@ FrankenPHP is a modern PHP application server, written in Go. It gives superpowe
3636

3737
- `app_folder` (String) Folder in which the application is located (inside the git repository)
3838
- `build_flavor` (String) Use dedicated instance with given flavor for build phase
39+
- `composer_flags` (String) Flags to pass to Composer
3940
- `dependencies` (Set of String) A list of application or add-ons required to run this application.
4041
Can be either app_xxx or postgres_yyy ID format
4142
- `deployment` (Block, Optional) (see [below for nested schema](#nestedblock--deployment))
4243
- `description` (String) Application description
4344
- `dev_dependencies` (Boolean) Install development dependencies (Default: false)
4445
- `environment` (Map of String, Sensitive) Environment variables injected into the application
4546
- `hooks` (Block, Optional) (see [below for nested schema](#nestedblock--hooks))
47+
- `listened_port` (Number) The port on which FrankenPHP listens for HTTP requests
4648
- `redirect_https` (Boolean) Redirect client from plain to TLS port
4749
- `region` (String) Geographical region where the database will be deployed
4850
- `sticky_sessions` (Boolean) Enable sticky sessions, use it when your client sessions are instances scoped
4951
- `vhosts` (Attributes Set) List of virtual hosts (see [below for nested schema](#nestedatt--vhosts))
52+
- `webroot` (String) Path to the web content to serve, relative to the root of your application
53+
- `worker_path` (String) Path to the worker script, relative to the root of your project (e.g. /worker/scrip.php)
5054

5155
### Read-Only
5256

docs/resources/go.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ Can be either app_xxx or postgres_yyy ID format
9696
- `deployment` (Block, Optional) (see [below for nested schema](#nestedblock--deployment))
9797
- `description` (String) Application description
9898
- `environment` (Map of String, Sensitive) Environment variables injected into the application
99+
- `go_build_tool` (String) Available values: `gomod`, `gobuild`. Build and install your application (`goget` is deprecated)
100+
- `go_pkg` (String) Tell the `CC_GO_BUILD_TOOL` which file contains the `main()` function (default: `main.go`)
101+
- `go_rundir` (String) Run the application from the specified path, relative to `$GOPATH/src/` (deprecated)
99102
- `hooks` (Block, Optional) (see [below for nested schema](#nestedblock--hooks))
100103
- `redirect_https` (Boolean) Redirect client from plain to TLS port
101104
- `region` (String) Geographical region where the database will be deployed

docs/resources/java_war.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,24 @@ resource "clevercloud_java_war" "myapp" {
9595
Can be either app_xxx or postgres_yyy ID format
9696
- `deployment` (Block, Optional) (see [below for nested schema](#nestedblock--deployment))
9797
- `description` (String) Application description
98+
- `disable_max_metaspace` (Boolean) Allows to disable the Java option `-XX:MaxMetaspaceSize`
9899
- `environment` (Map of String, Sensitive) Environment variables injected into the application
100+
- `extra_java_args` (String) Define extra arguments to pass to `java` for JAR
101+
- `gradle_deploy_goal` (String) Define which Gradle goals to run during build
99102
- `hooks` (Block, Optional) (see [below for nested schema](#nestedblock--hooks))
100-
- `java_version` (String) Choose the JVM version between 7 to 24 for OpenJDK or graalvm-ce for GraalVM 21.0.0.2 (based on OpenJDK 11.0).
103+
- `jar_args` (String) Define arguments to pass to the launched JAR
104+
- `jar_path` (String) Define the path to your JAR
105+
- `java_version` (String) Choose the JVM version between 7 to 24 for OpenJDK or `graalvm-ce` for GraalVM (default: 21)
106+
- `maven_deploy_goal` (String) Define which Maven goals to run during build
107+
- `maven_profiles` (String) Define which Maven profile to use during default build
108+
- `nudge_app_id` (String) Nudge application ID
109+
- `play1_version` (String) Define which play1 version to use between `1.2`, `1.3`, `1.4` and `1.5`
101110
- `redirect_https` (Boolean) Redirect client from plain to TLS port
102111
- `region` (String) Geographical region where the database will be deployed
112+
- `run_command` (String) Custom command to run your application. Replaces the default behavior
113+
- `sbt_deploy_goal` (String) Define which SBT goals to run during build (default: `stage`)
114+
- `sbt_target_bin` (String) Define the bin to pick in the `CC_SBT_TARGET_DIR`
115+
- `sbt_target_dir` (String) Define the folder the `target` dir is in (default: `.`)
103116
- `sticky_sessions` (Boolean) Enable sticky sessions, use it when your client sessions are instances scoped
104117
- `vhosts` (Attributes Set) List of virtual hosts (see [below for nested schema](#nestedatt--vhosts))
105118

docs/resources/nodejs.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,17 +91,20 @@ resource "clevercloud_nodejs" "myapp" {
9191

9292
- `app_folder` (String) Folder in which the application is located (inside the git repository)
9393
- `build_flavor` (String) Use dedicated instance with given flavor for build phase
94+
- `custom_build_tool` (String) A custom command to run (with package_manager set to `custom`)
9495
- `dependencies` (Set of String) A list of application or add-ons required to run this application.
9596
Can be either app_xxx or postgres_yyy ID format
9697
- `deployment` (Block, Optional) (see [below for nested schema](#nestedblock--deployment))
9798
- `description` (String) Application description
9899
- `dev_dependencies` (Boolean) Install development dependencies specified in package.json
99100
- `environment` (Map of String, Sensitive) Environment variables injected into the application
100101
- `hooks` (Block, Optional) (see [below for nested schema](#nestedblock--hooks))
101-
- `package_manager` (String) Either npm, npm-ci, bun, pnpm, yarn-berry or custom
102+
- `node_version` (String) Set Node.js version, for example `24`, `23.11` or `22.15.1`
103+
- `package_manager` (String) Choose your build tool between npm, npm-ci, yarn, yarn2 and custom. Default is `npm`
102104
- `redirect_https` (Boolean) Redirect client from plain to TLS port
103105
- `region` (String) Geographical region where the database will be deployed
104-
- `registry` (String) The host of your private repository, available values: github or the registry host
106+
- `registry` (String) The host of your private repository, available values: github or the registry host. Default is `registry.npmjs.org`
107+
- `registry_basic_auth` (String, Sensitive) Private repository credentials, in the form `user:password`. You can't use this if registry_token is set
105108
- `registry_token` (String, Sensitive) Private repository token
106109
- `start_script` (String) Set custom start script, instead of `npm start`
107110
- `sticky_sessions` (Boolean) Enable sticky sessions, use it when your client sessions are instances scoped

docs/resources/php.md

Lines changed: 34 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,22 +27,52 @@ See [PHP with Apache product specification](https://www.clever.cloud/developers/
2727

2828
### Optional
2929

30+
- `always_populate_raw_post_data` (String) Controls population of raw POST data
31+
- `apache_headers_size` (Number) Set the maximum size of the headers in Apache, between `8` and `256`. Default is `8`
3032
- `app_folder` (String) Folder in which the application is located (inside the git repository)
33+
- `async_app_bucket` (String) Mount the default app FS bucket asynchronously. If set, should have value `async`
3134
- `build_flavor` (String) Use dedicated instance with given flavor for build phase
35+
- `cgi_implementation` (String) Choose the Apache FastCGI module between `fastcgi` and `proxy_fcgi`. Default is `proxy_fcgi`
36+
- `composer_version` (String) Choose your composer version between 1 and 2. Default is `2`
3237
- `dependencies` (Set of String) A list of application or add-ons required to run this application.
3338
Can be either app_xxx or postgres_yyy ID format
3439
- `deployment` (Block, Optional) (see [below for nested schema](#nestedblock--deployment))
3540
- `description` (String) Application description
36-
- `dev_dependencies` (Boolean) Install development dependencies
41+
- `dev_dependencies` (String) Control if development dependencies are installed or not. Values are either `install` or `ignore`
42+
- `disable_app_bucket` (String) Disable entirely the app FS Bucket. Values are either `true`, `yes` or `disable`
43+
- `enable_elastic_apm_agent` (Boolean) Enable the Elastic APM Agent for PHP. Default is `true` if `ELASTIC_APM_SERVER_URL` is defined, `false` otherwise
44+
- `enable_grpc` (Boolean) Enable the use of gRPC module. Default is `false`
45+
- `enable_pdflib` (Boolean) Enable the use of PDFlib module. Default is `false`
46+
- `enable_redis` (Boolean) Enable Redis support. Default is `false`
3747
- `environment` (Map of String, Sensitive) Environment variables injected into the application
3848
- `hooks` (Block, Optional) (see [below for nested schema](#nestedblock--hooks))
39-
- `php_version` (String) PHP version (Default: 8)
49+
- `http_basic_auth` (String, Sensitive) Restrict HTTP access to your application. Example: `login:password`. You can define multiple credentials using additional `CC_HTTP_BASIC_AUTH_n` (where `n` is a number) environment variables
50+
- `http_timeout` (Number) Define a custom HTTP timeout. Default is `180`
51+
- `ldap_ca_cert` (String) Path to the LDAP CA certificate
52+
- `ldaptls_cacert` (String) Path to the LDAP TLS CA certificate
53+
- `max_input_vars` (Number) Maximum number of input variables that can be accepted
54+
- `memory_limit` (String) Change the default memory limit for PHP scripts
55+
- `mta_auth_password` (String, Sensitive) Password to authenticate to the SMTP server
56+
- `mta_auth_user` (String) User to authenticate to the SMTP server
57+
- `mta_server_auth_method` (String) Enable or disable authentication to the SMTP server. Default is `on`
58+
- `mta_server_host` (String) Host of the SMTP server
59+
- `mta_server_port` (Number) Port of the SMTP server. Default is `465`
60+
- `mta_server_use_tls` (Boolean) Enable or disable TLS when connecting to the SMTP server. Default is `true`
61+
- `opcache_interned_strings_buffer` (Number) The amount of memory used to store interned strings, in megabytes. Default is `4` (PHP5), `8` (PHP7)
62+
- `opcache_max_accelerated_files` (Number) Maximum number of files handled by opcache. Default depends on the scaler size
63+
- `opcache_memory` (String) Set the shared opcache memory size. Default is about 1/8 of the RAM
64+
- `opcache_preload` (String) The path of the PHP preload file (PHP version 7.4 or higher)
65+
- `php_version` (String) Choose your PHP version among those supported. Default is `8.3`
66+
- `realpath_cache_ttl` (Number) The size of the realpath cache to be used by PHP. Default is `120`
4067
- `redirect_https` (Boolean) Redirect client from plain to TLS port
41-
- `redis_sessions` (Boolean) Use a linked Redis instance to store sessions (Default: false)
4268
- `region` (String) Geographical region where the database will be deployed
69+
- `session_type` (String) Choose `redis` to use Redis as session store
70+
- `socksify_everything` (Boolean) Enable SOCKS proxy for all outgoing connections. Default is `false`
71+
- `sqreen_api_app_name` (String) The name of your Sqreen application
72+
- `sqreen_api_token` (String, Sensitive) Your Sqreen organization token
4373
- `sticky_sessions` (Boolean) Enable sticky sessions, use it when your client sessions are instances scoped
4474
- `vhosts` (Attributes Set) List of virtual hosts (see [below for nested schema](#nestedatt--vhosts))
45-
- `webroot` (String) Define the DocumentRoot of your project (default: ".")
75+
- `webroot` (String) Define the DocumentRoot of your project. Default is `.`
4676

4777
### Read-Only
4878

docs/resources/play2.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,12 @@ Can be either app_xxx or postgres_yyy ID format
9797
- `description` (String) Application description
9898
- `environment` (Map of String, Sensitive) Environment variables injected into the application
9999
- `hooks` (Block, Optional) (see [below for nested schema](#nestedblock--hooks))
100+
- `play1_version` (String) Define which play1 version to use between `1.2`, `1.3`, `1.4` and `1.5`
100101
- `redirect_https` (Boolean) Redirect client from plain to TLS port
101102
- `region` (String) Geographical region where the database will be deployed
103+
- `sbt_deploy_goal` (String) Define which SBT goals to run during build (default: `stage`)
104+
- `sbt_target_bin` (String) Define the bin to pick in the `CC_SBT_TARGET_DIR`
105+
- `sbt_target_dir` (String) Define the folder the `target` dir is in (default: `.`)
102106
- `sticky_sessions` (Boolean) Enable sticky sessions, use it when your client sessions are instances scoped
103107
- `vhosts` (Attributes Set) List of virtual hosts (see [below for nested schema](#nestedatt--vhosts))
104108

docs/resources/python.md

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,18 +91,45 @@ resource "clevercloud_python" "myapp" {
9191

9292
- `app_folder` (String) Folder in which the application is located (inside the git repository)
9393
- `build_flavor` (String) Use dedicated instance with given flavor for build phase
94+
- `celery_logfile` (String) Sets the relative path to the Celery log file (e.g., `/path/to/logdir`)
95+
- `celery_module` (String) Specifies the Celery module to start
96+
- `celery_use_beat` (Boolean) Set to `true` to enable Celery Beat support
9497
- `dependencies` (Set of String) A list of application or add-ons required to run this application.
9598
Can be either app_xxx or postgres_yyy ID format
9699
- `deployment` (Block, Optional) (see [below for nested schema](#nestedblock--deployment))
97100
- `description` (String) Application description
101+
- `enable_gzip_compression` (Boolean) Set to `true` to enable Gzip compression via Nginx
98102
- `environment` (Map of String, Sensitive) Environment variables injected into the application
103+
- `gunicorn_timeout` (Number) Timeout for Gunicorn workers. Default is `180`
104+
- `gunicorn_worker_class` (String) Gunicorn worker class (e.g., `gevent`, `sync`)
105+
- `gzip_types` (String) Defines the MIME types to be compressed by Gzip. Default is `text/* application/json application/xml application/javascript image/svg+xml`
106+
- `harakiri` (Number) Timeout in seconds after which an unresponsive process is killed. Default is `180`
99107
- `hooks` (Block, Optional) (see [below for nested schema](#nestedblock--hooks))
100-
- `pip_requirements` (String) Define a custom requirements.txt file (default: requirements.txt)
101-
- `python_version` (String) Python version >= 2.7
108+
- `http_basic_auth` (String, Sensitive) Restrict HTTP access to your application. Example: `login:password`. Multiple credentials can be defined using `CC_HTTP_BASIC_AUTH_n`
109+
- `manage_tasks` (String) A comma-separated list of Django `manage.py` tasks to execute
110+
- `nginx_proxy_buffer_size` (String) Sets the size of the buffer for the initial part of the response from the proxied server
111+
- `nginx_proxy_buffers` (String) Configures the number and size of buffers for reading responses from the proxied server
112+
- `nginx_read_timeout` (Number) Read timeout in seconds for Nginx. Default is `300`
113+
- `pip_requirements` (String) Specifies a custom requirements.txt file for package installation. Default is `requirements.txt`
114+
- `python_backend` (String) Selects the Python backend. Options include `daphne`, `gunicorn`, `uvicorn`, and `uwsgi`. Default is `uwsgi`
115+
- `python_module` (String) Defines the Python module to start with, including the path to the application object. Example: `app.server:app` for a `server.py` file in an `/app` folder
116+
- `python_version` (String) Selects the Python version. Refer to supported versions documentation
102117
- `redirect_https` (Boolean) Redirect client from plain to TLS port
103118
- `region` (String) Geographical region where the database will be deployed
119+
- `setup_py_goal` (String) A custom goal to execute after `requirements.txt` installation
120+
- `static_files_path` (String) The relative path to the directory containing static files (e.g., `path/to/static`)
121+
- `static_url_prefix` (String) The URL path prefix for serving static files. Commonly set to `/public`
122+
- `static_webroot` (String) Specifies the web root for static files
104123
- `sticky_sessions` (Boolean) Enable sticky sessions, use it when your client sessions are instances scoped
124+
- `use_gevent` (Boolean) Set to `true` to enable Gevent support
125+
- `uwsgi_async` (Number) Configures the number of cores for uWSGI asynchronous/non-blocking modes
126+
- `uwsgi_async_engine` (String) Selects the asynchronous engine for uWSGI (optional)
127+
- `uwsgi_intercept_errors` (Boolean) Enables or disables error interception in uWSGI
105128
- `vhosts` (Attributes Set) List of virtual hosts (see [below for nested schema](#nestedatt--vhosts))
129+
- `wsgi_buffer_size` (Number) Buffer size in bytes for uploads. Default is `4096`
130+
- `wsgi_post_buffering` (Number) Maximum size in bytes for request headers. Default is `4096`
131+
- `wsgi_threads` (Number) Number of threads per worker. Defaults to automatic setup based on scaler size
132+
- `wsgi_workers` (Number) Number of workers. Defaults to automatic setup based on scaler size
106133

107134
### Read-Only
108135

docs/resources/rust.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ Can be either app_xxx or postgres_yyy ID format
100100
- `hooks` (Block, Optional) (see [below for nested schema](#nestedblock--hooks))
101101
- `redirect_https` (Boolean) Redirect client from plain to TLS port
102102
- `region` (String) Geographical region where the database will be deployed
103+
- `run_command` (String) Custom command to run your application
104+
- `rust_bin` (String) The name of the binary to launch once built
105+
- `rustup_channel` (String) The rust channel to use. Use a specific channel version with `stable`, `beta`, `nightly` or a specific version like `1.13.0` (default: `stable`)
103106
- `sticky_sessions` (Boolean) Enable sticky sessions, use it when your client sessions are instances scoped
104107
- `vhosts` (Attributes Set) List of virtual hosts (see [below for nested schema](#nestedatt--vhosts))
105108

docs/resources/scala.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ Can be either app_xxx or postgres_yyy ID format
9999
- `hooks` (Block, Optional) (see [below for nested schema](#nestedblock--hooks))
100100
- `redirect_https` (Boolean) Redirect client from plain to TLS port
101101
- `region` (String) Geographical region where the database will be deployed
102+
- `sbt_deploy_goal` (String) Define which SBT goals to run during build (default: `stage`)
103+
- `sbt_target_bin` (String) Define the bin to pick in the `CC_SBT_TARGET_DIR`
104+
- `sbt_target_dir` (String) Define the folder the `target` dir is in (default: `.`)
102105
- `sticky_sessions` (Boolean) Enable sticky sessions, use it when your client sessions are instances scoped
103106
- `vhosts` (Attributes Set) List of virtual hosts (see [below for nested schema](#nestedatt--vhosts))
104107

0 commit comments

Comments
 (0)