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

make default configuration work with awx development api server

This commit is contained in:
Jake McDermott 2018-09-26 18:06:30 -04:00
parent a73c1dd28e
commit 065813ebc0
No known key found for this signature in database
GPG Key ID: 9A6F084352C3A0B7
3 changed files with 5 additions and 17 deletions

View File

@ -1,19 +1,5 @@
# AWX-PF
## Setup
```shell
# Configure the external tower or awx intance:
ssh -t your.external.tower.host <<-EOSH
sudo -i -u root
echo "CSRF_TRUSTED_ORIGINS = ['your.external.tower.host:443']" >> /etc/tower/settings.py
ansible-tower-service restart
EOSH
# Then update the project webpack configuration:
sed 's/localhost:443/your.external.tower.host:443/g' webpack.config.js > config.js
mv config.js webpack.config.js
```
## Usage
* `git clone git@github.com:ansible/awx-pf.git`
@ -21,3 +7,5 @@ mv config.js webpack.config.js
* npm install
* npm start
* visit `https://127.0.0.1:3000/`
**note:** These instructions assume you have the [awx](https://github.com/ansible/awx/blob/devel/CONTRIBUTING.md#running-the-environment) development api server up and running at `localhost:8043`.

2
package-lock.json generated
View File

@ -1,5 +1,5 @@
{
"name": "tower-react",
"name": "awx-react",
"version": "1.0.0",
"lockfileVersion": 1,
"requires": true,

View File

@ -1,7 +1,7 @@
const webpack = require('webpack');
const TARGET = 'https://localhost:443';
const TARGET_PORT = 443;
const TARGET_PORT = 8043;
const TARGET = `https://localhost:${TARGET_PORT}`;
module.exports = {
entry: './src/index.js',