Skip to content

Commit e3de353

Browse files
committed
Updates documentation
1 parent ef48392 commit e3de353

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

docs/topics/configuration.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,23 @@
22

33
The server comes well configured but the configuration can be tweaked. You should set your private recipes repo, all other options are optional.
44

5-
In order to change the configuration, alter the file `/config/parameters.yaml`. Some of the values can be provided in a .env-file, take a look at the contained `.env.dist` for helpful hints.
5+
In order to change the configuration, alter the file `/config/parameters.yaml`. Some of the values can be provided in environment variables or via .env-file, take a look at the contained `.env.dist` for helpful hints.
66

77
### Private recipes repo
88

99
Your private recipes repo must be a git repo. It must be available via git, so it should be either a public repo or you should ensure that your server has access to it, probably by setting up some sort of SSH keys. In order to make the server use your repo, set this parameter:
1010

11-
recipe_repo_private: The url to your private recipe repo
11+
env(FLEX_RECIPE_REPO_PRIVATE): The url to your private recipe repo
1212

13-
The url provided must be a *https* url. Make sure to provide the right url structure, here are two examples:
13+
The url provided should be a *https* url, but most valid git-urls will work. Make sure to provide the right url structure, here are some examples:
1414

1515
* `https://github.com/moay/demo-recipes`
16+
* `https://github.com/moay/demo-recipes.git`
1617
* `https://bitbucket.org/mvmoay/demo-recipes`
18+
* `[email protected]:moay/demo-recipes.git`
19+
* `[email protected]:1234/moay/demo-recipes.git`
1720

18-
There have been reports regarding private bitbucket repos, where people needed to use the git url (`[email protected]:<user>/<repo>.git`), feel free to try that out in case you run into problems.
21+
Github has proven to be quite good in resolving git requests, other providers or git servers may be pickier. If you run into problems, try to play with '.git', the protocol prefix or the type of url provided.
1922

2023
After changing the configuration, you'll need to update the repos. Whenever you change the repo entirely, it is recommended to completely reset the private repo by executing the command `php bin/console recipes:reset private`.
2124

@@ -25,7 +28,7 @@ Read more about these commands [here](commands.md).
2528

2629
* If you want your server instance to **not** act as a proxy for the official endpoint, set `proxy_official_endpoint` to false. The default behaviour is to do so, because otherwise, Symfony probably won't work properly. You should have good reasons in order to disable it.
2730
* If you don´t want the server to cache requests it makes to the official endpoint, set `cache_official_endpoint` to false. You won't notice any changes until network fails to load the official endpoint.
28-
* If (for some reason) you want to have any other official endpoint than symfony.sh, change `official_endpoint`. You could setup a working endpoint chain by providing the url to a second instance of this server.
31+
* If (for some reason) you want to have any other official endpoint than symfony.sh, change `env(FLEX_OFFICIAL_ENDPOINT)`. You could setup a working endpoint chain by providing the url to a second instance of this server.
2932

3033
### Mirroring the official recipe repos
3134

@@ -36,8 +39,8 @@ Having a local copy of the official repos might be something you consider. You c
3639

3740
Also, you might want to use your own forks of the official repos, you could use them by changing two options:
3841

39-
recipe_repo_official: The url to the official recipe repo
40-
recipe_repo_contrib: The url to the contrib recipe repo
42+
env(FLEX_RECIPE_REPO_OFFICIAL): The url to the official recipe repo
43+
env(FLEX_RECIPE_REPO_CONTRIB): The url to the contrib recipe repo
4144

4245
If you use both the proxy functionality **and** custom official repos, the official endpoint responses will be used only for recipes that are not available in your repos.
4346

docs/topics/setup.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Setting up the server should be quick and easy. These are the necessary steps:
44

55
1. [Download](https://github.com/moay/symfony-flex-server/releases) the project from Github (or `git clone https://github.com/moay/symfony-flex-server`)
66
2. Navigate to the project folder and run `composer install`.
7-
3. Open the file `config/services.yaml` and enter the url to your private recipes repo.
7+
3. Open the file `config/parameters.yaml` and enter the url to your private recipes repo (or provide appropriate environment variables).
88
4. Setup the `APP_ENV` properly. This can be done in the `.env` file (create if needed) or on the hosting. Setting it to `prod` is recommended.
99
5. Run `php bin/console recipes:initialize` in order to download your recipes.
1010

@@ -37,4 +37,4 @@ Make sure to allow connections over http to composer (if using localhost) by add
3737
}
3838
}
3939

40-
*It is not recommended to run the server locally. The best setup would be a private server behind a firewall.*
40+
*It is not recommended to run the server locally. The best setup would be a private server behind a firewall.*

0 commit comments

Comments
 (0)