https://github.com/mutablelogic/terraform-provider-nginx
nginx configuration API and terraform provider
https://github.com/mutablelogic/terraform-provider-nginx
Last synced: 2 months ago
JSON representation
nginx configuration API and terraform provider
- Host: GitHub
- URL: https://github.com/mutablelogic/terraform-provider-nginx
- Owner: mutablelogic
- License: apache-2.0
- Created: 2022-08-21T06:54:06.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-25T00:37:12.000Z (over 2 years ago)
- Last Synced: 2024-12-10T15:07:32.712Z (6 months ago)
- Language: Go
- Size: 197 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# terraform-provider-nginx
**DRAFT**
A terraform provider to manage nginx configuration. Exposes an API for performing the following:
* Enumerating a list of configuration files
* Enabling and disabling configuration files
* Testing nginx configuration
* Reloading nginx configurationThere are two elements to the provider:
* An API gateway which manages the nginx configuration files and server, and listens for requests from the terraform provider.
This server can be run in a docker container, more details are below.
* A terraform provider which exposes the API gateway as a resource.## Server API
The server task provides a REST API for creating, removing, limking and unlinking
configurations. The schema for the API is as follows:| Method | Path Pattern | Body | Description |
| ------ | ------------ | ----------------------------------------- | ----------- |
| GET | / | No body | Returns the list of available configurations |
| GET | /:name | No body | Returns a configuration |
| POST | /:name | `{ "enabled" : , "body" : }` | Creates a new configuration |
| DELETE | /:name | No body | Removes a configuration |
| PATCH | /:name |`{ "enabled" : }` | Enables or disables a configuration |