Skip to content
Open

wip #264

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/resources/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ resource "clevercloud_docker" "docker_instance" {

- `app_folder` (String) Folder in which the application is located (inside the git repository)
- `build_flavor` (String) Use dedicated instance with given flavor for build phase
- `buildx` (Boolean) Set to true to use buildx to build the Docker image
- `container_port` (Number) Set to custom HTTP port if your Docker container runs on custom port
- `container_port_tcp` (Number) Set to custom TCP port if your Docker container runs on custom port.
- `daemon_socket_mount` (Boolean) Set to true to access the host Docker socket from inside your container
Expand Down
4 changes: 4 additions & 0 deletions docs/resources/frankenphp.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,21 @@ FrankenPHP is a modern PHP application server, written in Go. It gives superpowe

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

### Read-Only

Expand Down
3 changes: 3 additions & 0 deletions docs/resources/go.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ Can be either app_xxx or postgres_yyy ID format
- `deployment` (Block, Optional) (see [below for nested schema](#nestedblock--deployment))
- `description` (String) Application description
- `environment` (Map of String, Sensitive) Environment variables injected into the application
- `go_build_tool` (String) Available values: `gomod`, `gobuild`. Build and install your application (`goget` is deprecated)
- `go_pkg` (String) Tell the `CC_GO_BUILD_TOOL` which file contains the `main()` function (default: `main.go`)
- `go_rundir` (String) Run the application from the specified path, relative to `$GOPATH/src/` (deprecated)
- `hooks` (Block, Optional) (see [below for nested schema](#nestedblock--hooks))
- `redirect_https` (Boolean) Redirect client from plain to TLS port
- `region` (String) Geographical region where the database will be deployed
Expand Down
15 changes: 14 additions & 1 deletion docs/resources/java_war.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,24 @@ resource "clevercloud_java_war" "myapp" {
Can be either app_xxx or postgres_yyy ID format
- `deployment` (Block, Optional) (see [below for nested schema](#nestedblock--deployment))
- `description` (String) Application description
- `disable_max_metaspace` (Boolean) Allows to disable the Java option `-XX:MaxMetaspaceSize`
- `environment` (Map of String, Sensitive) Environment variables injected into the application
- `extra_java_args` (String) Define extra arguments to pass to `java` for JAR
- `gradle_deploy_goal` (String) Define which Gradle goals to run during build
- `hooks` (Block, Optional) (see [below for nested schema](#nestedblock--hooks))
- `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).
- `jar_args` (String) Define arguments to pass to the launched JAR
- `jar_path` (String) Define the path to your JAR
- `java_version` (String) Choose the JVM version between 7 to 24 for OpenJDK or `graalvm-ce` for GraalVM (default: 21)
- `maven_deploy_goal` (String) Define which Maven goals to run during build
- `maven_profiles` (String) Define which Maven profile to use during default build
- `nudge_app_id` (String) Nudge application ID
- `play1_version` (String) Define which play1 version to use between `1.2`, `1.3`, `1.4` and `1.5`
- `redirect_https` (Boolean) Redirect client from plain to TLS port
- `region` (String) Geographical region where the database will be deployed
- `run_command` (String) Custom command to run your application. Replaces the default behavior
- `sbt_deploy_goal` (String) Define which SBT goals to run during build (default: `stage`)
- `sbt_target_bin` (String) Define the bin to pick in the `CC_SBT_TARGET_DIR`
- `sbt_target_dir` (String) Define the folder the `target` dir is in (default: `.`)
- `sticky_sessions` (Boolean) Enable sticky sessions, use it when your client sessions are instances scoped
- `vhosts` (Attributes Set) List of virtual hosts (see [below for nested schema](#nestedatt--vhosts))

Expand Down
7 changes: 5 additions & 2 deletions docs/resources/nodejs.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,17 +91,20 @@ resource "clevercloud_nodejs" "myapp" {

- `app_folder` (String) Folder in which the application is located (inside the git repository)
- `build_flavor` (String) Use dedicated instance with given flavor for build phase
- `custom_build_tool` (String) A custom command to run (with package_manager set to `custom`)
- `dependencies` (Set of String) A list of application or add-ons required to run this application.
Can be either app_xxx or postgres_yyy ID format
- `deployment` (Block, Optional) (see [below for nested schema](#nestedblock--deployment))
- `description` (String) Application description
- `dev_dependencies` (Boolean) Install development dependencies specified in package.json
- `environment` (Map of String, Sensitive) Environment variables injected into the application
- `hooks` (Block, Optional) (see [below for nested schema](#nestedblock--hooks))
- `package_manager` (String) Either npm, npm-ci, bun, pnpm, yarn-berry or custom
- `node_version` (String) Set Node.js version, for example `24`, `23.11` or `22.15.1`
- `package_manager` (String) Choose your build tool between npm, npm-ci, yarn, yarn2 and custom. Default is `npm`
- `redirect_https` (Boolean) Redirect client from plain to TLS port
- `region` (String) Geographical region where the database will be deployed
- `registry` (String) The host of your private repository, available values: github or the registry host
- `registry` (String) The host of your private repository, available values: github or the registry host. Default is `registry.npmjs.org`
- `registry_basic_auth` (String, Sensitive) Private repository credentials, in the form `user:password`. You can't use this if registry_token is set
- `registry_token` (String, Sensitive) Private repository token
- `start_script` (String) Set custom start script, instead of `npm start`
- `sticky_sessions` (Boolean) Enable sticky sessions, use it when your client sessions are instances scoped
Expand Down
38 changes: 34 additions & 4 deletions docs/resources/php.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,52 @@ See [PHP with Apache product specification](https://www.clever.cloud/developers/

### Optional

- `always_populate_raw_post_data` (String) Controls population of raw POST data
- `apache_headers_size` (Number) Set the maximum size of the headers in Apache, between `8` and `256`. Default is `8`
- `app_folder` (String) Folder in which the application is located (inside the git repository)
- `async_app_bucket` (String) Mount the default app FS bucket asynchronously. If set, should have value `async`
- `build_flavor` (String) Use dedicated instance with given flavor for build phase
- `cgi_implementation` (String) Choose the Apache FastCGI module between `fastcgi` and `proxy_fcgi`. Default is `proxy_fcgi`
- `composer_version` (String) Choose your composer version between 1 and 2. Default is `2`
- `dependencies` (Set of String) A list of application or add-ons required to run this application.
Can be either app_xxx or postgres_yyy ID format
- `deployment` (Block, Optional) (see [below for nested schema](#nestedblock--deployment))
- `description` (String) Application description
- `dev_dependencies` (Boolean) Install development dependencies
- `dev_dependencies` (String) Control if development dependencies are installed or not. Values are either `install` or `ignore`
- `disable_app_bucket` (String) Disable entirely the app FS Bucket. Values are either `true`, `yes` or `disable`
- `enable_elastic_apm_agent` (Boolean) Enable the Elastic APM Agent for PHP. Default is `true` if `ELASTIC_APM_SERVER_URL` is defined, `false` otherwise
- `enable_grpc` (Boolean) Enable the use of gRPC module. Default is `false`
- `enable_pdflib` (Boolean) Enable the use of PDFlib module. Default is `false`
- `enable_redis` (Boolean) Enable Redis support. Default is `false`
- `environment` (Map of String, Sensitive) Environment variables injected into the application
- `hooks` (Block, Optional) (see [below for nested schema](#nestedblock--hooks))
- `php_version` (String) PHP version (Default: 8)
- `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
- `http_timeout` (Number) Define a custom HTTP timeout. Default is `180`
- `ldap_ca_cert` (String) Path to the LDAP CA certificate
- `ldaptls_cacert` (String) Path to the LDAP TLS CA certificate
- `max_input_vars` (Number) Maximum number of input variables that can be accepted
- `memory_limit` (String) Change the default memory limit for PHP scripts
- `mta_auth_password` (String, Sensitive) Password to authenticate to the SMTP server
- `mta_auth_user` (String) User to authenticate to the SMTP server
- `mta_server_auth_method` (String) Enable or disable authentication to the SMTP server. Default is `on`
- `mta_server_host` (String) Host of the SMTP server
- `mta_server_port` (Number) Port of the SMTP server. Default is `465`
- `mta_server_use_tls` (Boolean) Enable or disable TLS when connecting to the SMTP server. Default is `true`
- `opcache_interned_strings_buffer` (Number) The amount of memory used to store interned strings, in megabytes. Default is `4` (PHP5), `8` (PHP7)
- `opcache_max_accelerated_files` (Number) Maximum number of files handled by opcache. Default depends on the scaler size
- `opcache_memory` (String) Set the shared opcache memory size. Default is about 1/8 of the RAM
- `opcache_preload` (String) The path of the PHP preload file (PHP version 7.4 or higher)
- `php_version` (String) Choose your PHP version among those supported. Default is `8.3`
- `realpath_cache_ttl` (Number) The size of the realpath cache to be used by PHP. Default is `120`
- `redirect_https` (Boolean) Redirect client from plain to TLS port
- `redis_sessions` (Boolean) Use a linked Redis instance to store sessions (Default: false)
- `region` (String) Geographical region where the database will be deployed
- `session_type` (String) Choose `redis` to use Redis as session store
- `socksify_everything` (Boolean) Enable SOCKS proxy for all outgoing connections. Default is `false`
- `sqreen_api_app_name` (String) The name of your Sqreen application
- `sqreen_api_token` (String, Sensitive) Your Sqreen organization token
- `sticky_sessions` (Boolean) Enable sticky sessions, use it when your client sessions are instances scoped
- `vhosts` (Attributes Set) List of virtual hosts (see [below for nested schema](#nestedatt--vhosts))
- `webroot` (String) Define the DocumentRoot of your project (default: ".")
- `webroot` (String) Define the DocumentRoot of your project. Default is `.`

### Read-Only

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

Expand Down
31 changes: 29 additions & 2 deletions docs/resources/python.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,18 +91,45 @@ resource "clevercloud_python" "myapp" {

- `app_folder` (String) Folder in which the application is located (inside the git repository)
- `build_flavor` (String) Use dedicated instance with given flavor for build phase
- `celery_logfile` (String) Sets the relative path to the Celery log file (e.g., `/path/to/logdir`)
- `celery_module` (String) Specifies the Celery module to start
- `celery_use_beat` (Boolean) Set to `true` to enable Celery Beat support
- `dependencies` (Set of String) A list of application or add-ons required to run this application.
Can be either app_xxx or postgres_yyy ID format
- `deployment` (Block, Optional) (see [below for nested schema](#nestedblock--deployment))
- `description` (String) Application description
- `enable_gzip_compression` (Boolean) Set to `true` to enable Gzip compression via Nginx
- `environment` (Map of String, Sensitive) Environment variables injected into the application
- `gunicorn_timeout` (Number) Timeout for Gunicorn workers. Default is `180`
- `gunicorn_worker_class` (String) Gunicorn worker class (e.g., `gevent`, `sync`)
- `gzip_types` (String) Defines the MIME types to be compressed by Gzip. Default is `text/* application/json application/xml application/javascript image/svg+xml`
- `harakiri` (Number) Timeout in seconds after which an unresponsive process is killed. Default is `180`
- `hooks` (Block, Optional) (see [below for nested schema](#nestedblock--hooks))
- `pip_requirements` (String) Define a custom requirements.txt file (default: requirements.txt)
- `python_version` (String) Python version >= 2.7
- `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`
- `manage_tasks` (String) A comma-separated list of Django `manage.py` tasks to execute
- `nginx_proxy_buffer_size` (String) Sets the size of the buffer for the initial part of the response from the proxied server
- `nginx_proxy_buffers` (String) Configures the number and size of buffers for reading responses from the proxied server
- `nginx_read_timeout` (Number) Read timeout in seconds for Nginx. Default is `300`
- `pip_requirements` (String) Specifies a custom requirements.txt file for package installation. Default is `requirements.txt`
- `python_backend` (String) Selects the Python backend. Options include `daphne`, `gunicorn`, `uvicorn`, and `uwsgi`. Default is `uwsgi`
- `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
- `python_version` (String) Selects the Python version. Refer to supported versions documentation
- `redirect_https` (Boolean) Redirect client from plain to TLS port
- `region` (String) Geographical region where the database will be deployed
- `setup_py_goal` (String) A custom goal to execute after `requirements.txt` installation
- `static_files_path` (String) The relative path to the directory containing static files (e.g., `path/to/static`)
- `static_url_prefix` (String) The URL path prefix for serving static files. Commonly set to `/public`
- `static_webroot` (String) Specifies the web root for static files
- `sticky_sessions` (Boolean) Enable sticky sessions, use it when your client sessions are instances scoped
- `use_gevent` (Boolean) Set to `true` to enable Gevent support
- `uwsgi_async` (Number) Configures the number of cores for uWSGI asynchronous/non-blocking modes
- `uwsgi_async_engine` (String) Selects the asynchronous engine for uWSGI (optional)
- `uwsgi_intercept_errors` (Boolean) Enables or disables error interception in uWSGI
- `vhosts` (Attributes Set) List of virtual hosts (see [below for nested schema](#nestedatt--vhosts))
- `wsgi_buffer_size` (Number) Buffer size in bytes for uploads. Default is `4096`
- `wsgi_post_buffering` (Number) Maximum size in bytes for request headers. Default is `4096`
- `wsgi_threads` (Number) Number of threads per worker. Defaults to automatic setup based on scaler size
- `wsgi_workers` (Number) Number of workers. Defaults to automatic setup based on scaler size

### Read-Only

Expand Down
3 changes: 3 additions & 0 deletions docs/resources/rust.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ Can be either app_xxx or postgres_yyy ID format
- `hooks` (Block, Optional) (see [below for nested schema](#nestedblock--hooks))
- `redirect_https` (Boolean) Redirect client from plain to TLS port
- `region` (String) Geographical region where the database will be deployed
- `run_command` (String) Custom command to run your application
- `rust_bin` (String) The name of the binary to launch once built
- `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`)
- `sticky_sessions` (Boolean) Enable sticky sessions, use it when your client sessions are instances scoped
- `vhosts` (Attributes Set) List of virtual hosts (see [below for nested schema](#nestedatt--vhosts))

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

Expand Down
Loading
Loading