1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-27 09:25:10 +03:00

Merge pull request #7026 from 0xflotus/patch-1

(docs): enabled syntax highlighting for http patch

Reviewed-by: Ryan Petrello
             https://github.com/ryanpetrello
This commit is contained in:
softwarefactory-project-zuul[bot] 2020-05-14 20:11:00 +00:00 committed by GitHub
commit 275c43bd4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 11 deletions

View File

@ -5,9 +5,11 @@ AWX supports custom CORS headers via the Django CORS Middleware
To define CORS-specific settings, add them to ``/etc/tower/conf.d/cors.py``:
CORS_ORIGIN_WHITELIST = (
'hostname.example.com',
'127.0.0.1:9000'
)
```python
CORS_ORIGIN_WHITELIST = (
'hostname.example.com',
'127.0.0.1:9000'
)
```
...and restart all AWX services for changes to take effect.

View File

@ -140,14 +140,16 @@ Assigning Custom Virtualenvs
Once you've created a custom virtualenv, you can assign it at the Organization,
Project, or Job Template level:
PATCH https://awx-host.example.org/api/v2/organizations/N/
PATCH https://awx-host.example.org/api/v2/projects/N/
PATCH https://awx-host.example.org/api/v2/job_templates/N/
```http
PATCH https://awx-host.example.org/api/v2/organizations/N/
PATCH https://awx-host.example.org/api/v2/projects/N/
PATCH https://awx-host.example.org/api/v2/job_templates/N/
Content-Type: application/json
{
'custom_virtualenv': '/opt/my-envs/custom-venv/'
}
Content-Type: application/json
{
"custom_virtualenv": "/opt/my-envs/custom-venv/"
}
```
An HTTP `GET` request to `/api/v2/config/` will provide a list of
detected installed virtualenvs: