Skip to content
Snippets Groups Projects
Commit 99fd0332 authored by Georgi Todorov's avatar Georgi Todorov
Browse files

Add new file

parent 6662a53c
No related branches found
No related tags found
No related merge requests found
Pipeline #64905 passed
apiVersion: v1
kind: ConfigMap
metadata:
name: caddy
namespace: ocm
data:
Caddyfile: |
{
debug
}
:80 {
@websockets {
header Connection upgrade
header_regexp Connection (?i)^upgrade$
header Upgrade websocket
}
# Handle any traffic that matches the `@websockets` pattern
handle @websockets {
reverse_proxy SERVICE:PORT
}
# Handle all other traffic.
handle {
reverse_proxy http://SERVICE:PORT
}
# What logs should look like.
log {
output stdout
# format single_field common_log
level DEBUG
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment