summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-01-11 15:08:59 +0300
committerValery Piashchynski <[email protected]>2021-01-11 15:08:59 +0300
commitfaf36bf835b0ac6a9f23226a94a341384272801d (patch)
tree5074b19b7bd0fa71b006b1fbfb1cd999dfc932bb
parentc4112cd214a9c7cbed82c82eefc75904fb42d1af (diff)
Move http error codes in the .rr.yaml to the correct place
-rw-r--r--.rr.yaml46
1 files changed, 18 insertions, 28 deletions
diff --git a/.rr.yaml b/.rr.yaml
index 1889a1ec..51eb51ec 100644
--- a/.rr.yaml
+++ b/.rr.yaml
@@ -41,16 +41,10 @@ metrics:
http:
# http host to listen.
address: 0.0.0.0:8080
-
- ssl:
- # custom https port (default 443)
- port: 443
-
- # force redirect to https connection
- redirect: true
-
- # ssl cert
- cert: server.crt
+ # override http error code for the application errors (default 500)
+ appErrorCode: 505
+ # override http error code for the internal RR errors (default 500)
+ internalErrorCode: 505
# ssl private key
key: server.key
@@ -98,10 +92,6 @@ http:
# worker pool configuration.
pool:
- # override http error code for the application errors (default 500)
- appErrorCode: 500
- # override http error code for the internal RR errors (default 500)
- internalErrorCode: 500
# number of workers to be serving.
numWorkers: 4
@@ -166,20 +156,20 @@ limit:
execTTL: 60
# static file serving. remove this section to disable static file serving.
-static:
- # root directory for static file (http would not serve .php and .htaccess files).
- dir: "public"
-
- # list of extensions for forbid for serving.
- forbid: [ ".php", ".htaccess" ]
-
- # Automatically add headers to every request.
- request:
- "Example-Request-Header": "Value"
-
- # Automatically add headers to every response.
- response:
- "X-Powered-By": "RoadRunner"
+#static:
+# # root directory for static file (http would not serve .php and .htaccess files).
+# dir: "public"
+#
+# # list of extensions for forbid for serving.
+# forbid: [ ".php", ".htaccess" ]
+#
+# # Automatically add headers to every request.
+# request:
+# "Example-Request-Header": "Value"
+#
+# # Automatically add headers to every response.
+# response:
+# "X-Powered-By": "RoadRunner"
# health service configuration
health: