Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow to configure custom proxy client #208

Merged
merged 1 commit into from
May 8, 2015
Merged

allow to configure custom proxy client #208

merged 1 commit into from
May 8, 2015

Conversation

dbu
Copy link
Contributor

@dbu dbu commented Mar 14, 2015

fix #186

This does not handle the test case section, but then i don't think we need to care about that. The test case would need to know about the caching proxy implementation anyways.

to work.

The proxy client is also directly available as a service
(``fos_http_cache.proxy_client.default`` and .varnish or .nginx) that you can use
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add backticks around varnish and nginx or perhaps spell them fully for clarity.

@dbu
Copy link
Contributor Author

dbu commented Mar 15, 2015

fixed the doc.

do you agree with naming the option "custom_proxy_client"? i first had proxy_client but while documenting, i realized that this becomes really confusing with a proxy_client section and then a proxy_client field for a service name. and when the proxy_client section is configured, you specify in there which the default client is, it would be wrong to specify the nginx / varnish client service name in the custom_proxy_client field.

@dbu
Copy link
Contributor Author

dbu commented Apr 14, 2015

@ddeboer ping

@@ -10,6 +11,7 @@ by default if a :doc:`Proxy Client <proxy-client>` is configured.
fos_http_cache:
cache_manager:
enabled: true
custom_proxy_client: ~
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does this mean? Isn’t a service name a requirement for a custom client?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the way the configuration works is that this value defaults to null meaning there is no custom client service. if you configure this to a non-null value, that service will be used instead of the default one.

we can't hardcode the client here, because that depends on whether you configure the symfony or varnish or nginx client.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right!

@ddeboer
Copy link
Member

ddeboer commented May 3, 2015

do you agree with naming the option "custom_proxy_client"?

Yes.

ddeboer added a commit that referenced this pull request May 8, 2015
allow to configure custom proxy client
@ddeboer ddeboer merged commit a23c01a into master May 8, 2015
@dbu dbu deleted the proxy-client-tag branch May 8, 2015 09:37
dbu added a commit that referenced this pull request May 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Register new proxy clients via service tag
3 participants