https://github.com/l-with/terraform-module-nginx
Terraform Module nginx
https://github.com/l-with/terraform-module-nginx
nginx terraform terraform-module
Last synced: about 1 month ago
JSON representation
Terraform Module nginx
- Host: GitHub
- URL: https://github.com/l-with/terraform-module-nginx
- Owner: l-with
- Created: 2023-02-04T19:21:28.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-06T13:55:42.000Z (over 3 years ago)
- Last Synced: 2025-08-17T21:28:06.882Z (10 months ago)
- Topics: nginx, terraform, terraform-module
- Language: HCL
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# terraform-module-ningx
Terraform module which installs and configures nginx by [Terraform Provider for (Operating) System](https://registry.terraform.io/providers/neuspaces/system).
This is a terraform replacement for [Ansible Role Nginx](https://github.com/l-with/ansible-role-nginx).
## Requirements
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 0.15 |
| [system](#requirement\_system) | >= 0.3.0 |
## Providers
| Name | Version |
|------|---------|
| [system](#provider\_system) | >= 0.3.0 |
## Modules
No modules.
## Resources
| Name | Type |
|------|------|
| [system_file.FQDN_port_conf](https://registry.terraform.io/providers/neuspaces/system/latest/docs/resources/file) | resource |
| [system_file.conf_d_ssl_ehcd_curve_conf](https://registry.terraform.io/providers/neuspaces/system/latest/docs/resources/file) | resource |
| [system_file.sites_available_nginx_server_FQDN_http_conf](https://registry.terraform.io/providers/neuspaces/system/latest/docs/resources/file) | resource |
| [system_file.sites_available_nginx_server_FQDN_https_conf](https://registry.terraform.io/providers/neuspaces/system/latest/docs/resources/file) | resource |
| [system_link.FQDN_port_conf](https://registry.terraform.io/providers/neuspaces/system/latest/docs/resources/link) | resource |
| [system_link.sites_enabled_nginx_server_FQDN_http_conf](https://registry.terraform.io/providers/neuspaces/system/latest/docs/resources/link) | resource |
| [system_link.sites_enabled_nginx_server_FQDN_https_conf](https://registry.terraform.io/providers/neuspaces/system/latest/docs/resources/link) | resource |
| [system_packages_apt.nginx](https://registry.terraform.io/providers/neuspaces/system/latest/docs/resources/packages_apt) | resource |
| [system_service_systemd.nginx](https://registry.terraform.io/providers/neuspaces/system/latest/docs/resources/service_systemd) | resource |
| [system_command.rm_sites_enabled_default](https://registry.terraform.io/providers/neuspaces/system/latest/docs/data-sources/command) | data source |
## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [nginx\_GNU](#input\_nginx\_GNU) | if the [GNU Terry Pratchett](http://www.gnuterrypratchett.com) header should be inserted | `bool` | `true` | no |
| [nginx\_config](#input\_nginx\_config) | if the standard nginx configration should be done | `bool` | `true` | no |
| [nginx\_configuration\_home](#input\_nginx\_configuration\_home) | the configration home of nginx | `string` | `"/etc/nginx"` | no |
| [nginx\_confs](#input\_nginx\_confs) | the extra configurations for nginx as list of object |
list(object({
port = number
server_name = string
conf_in_server_stanza = string
})) | `[]` | no |
| [nginx\_https\_conf](#input\_nginx\_https\_conf) | the nginx https configuration after `server_name` | `string` | `""` | no |
| [nginx\_https\_map](#input\_nginx\_https\_map) | the map stanza configuration for nginx https configuration | `string` | `""` | no |
| [nginx\_install](#input\_nginx\_install) | if nginx should be installed and enabled | `bool` | `true` | no |
| [nginx\_server\_FQDN](#input\_nginx\_server\_FQDN) | the FQDN of the server for nginx\_server\_name and Let's Encrypt certificates | `string` | n/a | yes |
| [nginx\_vouch\_FQDN](#input\_nginx\_vouch\_FQDN) | the FQDN of vouch-proxy | `string` | `""` | no |
| [nginx\_vouch\_port](#input\_nginx\_vouch\_port) | the port of vouch-proxy | `number` | `9090` | no |
## Outputs
| Name | Description |
|------|-------------|
| [restart\_nginx](#output\_restart\_nginx) | command to restart nginx |