distribute a config.dist.php file
This commit is contained in:
parent
9e9bae4015
commit
aaa5330591
|
|
@ -1,4 +1,5 @@
|
||||||
secrets.php
|
secrets.php
|
||||||
proxy/file_cache
|
proxy/file_cache
|
||||||
|
proxy/config.php
|
||||||
debug.log
|
debug.log
|
||||||
.idea
|
.idea
|
||||||
|
|
@ -36,16 +36,20 @@ The CiviProxy server is the actual policeman that receives all requests and deci
|
||||||
|
|
||||||
Once you have installed your CiviProxy server you need to complete a few configuration steps.
|
Once you have installed your CiviProxy server you need to complete a few configuration steps.
|
||||||
### The Config.php file
|
### The Config.php file
|
||||||
The configuration of CiviProxy is mainly controlled with one PHP file called `config.php`. You will need to locate that file in your CiviProxy scripts:
|
|
||||||
|
The configuration of CiviProxy is mainly controlled with one PHP file called `config.php`. Create this file by copying or renaming the `config.dist.php` file.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
### Configuring the URL of your CiviProxy server
|
### Configuring the URL of your CiviProxy server
|
||||||
|
|
||||||
First thing you need to configure is the base URL of your CiviProxy server using the `$proxy_base` variable in the `config.php` file. As I have used a local test installation I have used `http://localhost/proxy`:
|
First thing you need to configure is the base URL of your CiviProxy server using the `$proxy_base` variable in the `config.php` file. As I have used a local test installation I have used `http://localhost/proxy`:
|
||||||
```php
|
```php
|
||||||
// this should point to the base address of the CiviProxy installation
|
// this should point to the base address of the CiviProxy installation
|
||||||
$proxy_base = 'http://localhost/proxy';
|
$proxy_base = 'http://localhost/proxy';
|
||||||
```
|
```
|
||||||
### Configuring the link to the secure target CiviCRM
|
### Configuring the link to the secure target CiviCRM
|
||||||
|
|
||||||
Next thing you want to configure is what your target CiviCRM is. This is the CiviCRM installation which you want CiviProxy to police, so the one where the actual data resides and is collected from or sent to.
|
Next thing you want to configure is what your target CiviCRM is. This is the CiviCRM installation which you want CiviProxy to police, so the one where the actual data resides and is collected from or sent to.
|
||||||
|
|
||||||
The assumption is that this CiviCRM resides in some kind of VPN and will accept traffic only from the CiviProxy IP address (and probably a few trusted others like home workers or support people).
|
The assumption is that this CiviCRM resides in some kind of VPN and will accept traffic only from the CiviProxy IP address (and probably a few trusted others like home workers or support people).
|
||||||
|
|
|
||||||
|
|
@ -49,6 +49,8 @@ Installing CiviProxy should be pretty straightforward:
|
||||||
* check the [Configuring CiviProxy](configuration.md) page to see how to configure the CiviProxy extension.
|
* check the [Configuring CiviProxy](configuration.md) page to see how to configure the CiviProxy extension.
|
||||||
|
|
||||||
## Installing the Proxy scripts your your CiviProxy server
|
## Installing the Proxy scripts your your CiviProxy server
|
||||||
All you need to do is copy the **proxy** folder on the webspace you want to use for CiviProxy.
|
|
||||||
|
|
||||||
As described in [Configuring CiviProxy](configuration.md), you will need to make changes to the `config.php` file. You can either do those changes locally first and then move all the files to your webspace, or move all the files to your webspace first and then changes the `config.php` file there.
|
1. Copy the **proxy** folder on the webspace you want to use for CiviProxy
|
||||||
|
2. Create a `config.php` file using `config.dist.php` as a template.
|
||||||
|
|
||||||
|
See [Configuring CiviProxy](configuration.md) for details on what you need to include in the `config.php` file.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue