Guest User

Untitled

a guest
May 26th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. fn main() {
  2. // Logger
  3. env::set_var("RUST_LOG", "simple_proxy,ox");
  4. pretty_env_logger::init();
  5.  
  6. // Config
  7. dotenv().ok();
  8. let config = config::Config::new();
  9. info!("Config: {:?}", config);
  10. let mut proxy = SimpleProxy::new(config.port, config.environment);
  11.  
  12. // Middlewares
  13. proxy.add_middleware(Routing::new(&config));
  14. // proxy.add_middleware(Routing::new(config));
  15. // proxy.add_middleware(Routing::new(config));
  16.  
  17. // Start proxy
  18. proxy.run();
  19. }
Add Comment
Please, Sign In to add comment