mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-04-22 18:22:49 +08:00
deloyed to azure web apps but not working because flurl is a bit wonky...will probably revert to http client
This commit is contained in:
parent
d86a52c1b8
commit
27f012135d
@ -26,3 +26,5 @@ Priorities
|
|||||||
- Logging
|
- Logging
|
||||||
- Rate Limiting
|
- Rate Limiting
|
||||||
- Then a big list of cool things...
|
- Then a big list of cool things...
|
||||||
|
|
||||||
|
## How to use
|
||||||
|
4
src/Ocelot/configuration.yaml
Normal file
4
src/Ocelot/configuration.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
ReRoutes:
|
||||||
|
- DownstreamTemplate: http://www.bbc.co.uk
|
||||||
|
UpstreamTemplate: /
|
||||||
|
UpstreamHttpMethod: Get
|
@ -1,4 +1,6 @@
|
|||||||
{
|
{
|
||||||
|
"version": "1.0.0-*",
|
||||||
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"Microsoft.NETCore.App": {
|
"Microsoft.NETCore.App": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
@ -34,7 +36,12 @@
|
|||||||
|
|
||||||
"buildOptions": {
|
"buildOptions": {
|
||||||
"emitEntryPoint": true,
|
"emitEntryPoint": true,
|
||||||
"preserveCompilationContext": true
|
"preserveCompilationContext": true,
|
||||||
|
"copyToOutput": {
|
||||||
|
"include": [
|
||||||
|
"configuration.yaml"
|
||||||
|
]
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
"runtimeOptions": {
|
"runtimeOptions": {
|
||||||
@ -49,11 +56,12 @@
|
|||||||
"Views",
|
"Views",
|
||||||
"Areas/**/Views",
|
"Areas/**/Views",
|
||||||
"appsettings.json",
|
"appsettings.json",
|
||||||
"web.config"
|
"web.config",
|
||||||
|
"configuration.yaml"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"postpublish": [ "dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%" ]
|
"postpublish": [ "dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%" ]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
ReRoutes:
|
ReRoutes:
|
||||||
- DownstreamTemplate: http://localhost:51879/
|
- DownstreamTemplate: http://localhost:51879/
|
||||||
UpstreamTemplate: /
|
UpstreamTemplate: /
|
||||||
HttpMethod: Get
|
UpstreamHttpMethod: Get
|
||||||
|
Loading…
x
Reference in New Issue
Block a user