Git Product home page Git Product logo

proxy-symfony's Introduction

RedirectionIO Proxy for Symfony

Symfony Proxy works in combination with redirection.io.

If you don't know what is redirection.io, take the time to make a quick tour on the website.

Before using it, you need:

  • a redirection.io account. If you don't have an account, please contact us here.
  • a configured redirection.io agent on your server. Please follow the installation guide.

Drop us an email to [email protected] if you need help or have any questions.

Installation

composer require redirectionio/proxy-symfony

Configuration

Configuration file location

  • Symfony framework-standard-edition: app/config/config.yml
  • Symfony Flex: config/packages/redirectionio.yaml

Configuration Example

# redirection.io Configuration
redirection_io:
    project_key: 'foo:bar'
    connections:
        agent_tcp: 'tcp://127.0.0.1:20301'
        agent_unix: 'unix:///var/run/redirectionio_agent.sock'

Configuration reference

The following command dump the configuration reference:

bin/console config:dump-reference redirection_io

The following command dump your configuration:

bin/console  debug:config redirection_io

Do not process some requests

You might want to exclude some requests, because you know they will never have some redirections on it, or you don't want log them. It's the case for debug routes for example: /_wdt, /_profiler, and /_error. That's why we ignore theses request by default thanks to their URL prefixes.

Ignore requests by URL prefix

You can add more prefixes to the configuration:

redirection_io:
    excluded_prefixes:
        - /admin
        - /api
        # ...

Ignore requests by Host

redirection_io:
    excluded_hosts:
        - api.example.com
        - admin.example.com
        # - 127.0.0.1
        # ...

Ignore other requests

If you need to do custom code to ignore some requests, you have to implement RedirectionIO\Client\ProxySymfony\CircuitBreaker\CircuitBreakerInterface.

If you are not using the default configuration of Symfony (autowire=true and autoconfigure=true), you will have to register the service and tag it with redirectionio.circuit_breaker.

proxy-symfony's People

Contributors

joelwurtz avatar lyrixx avatar qboot avatar xavierlacot avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.