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:
parent
a73c1dd28e
commit
065813ebc0
16
README.md
16
README.md
@ -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
2
package-lock.json
generated
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "tower-react",
|
||||
"name": "awx-react",
|
||||
"version": "1.0.0",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user