Difference between revisions of "Caddyfile"

From wikieduonline
Jump to navigation Jump to search
(Created page with "{{Draft}} == See also == * {{Caddy}}")
 
 
(16 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Draft}}
+
* https://caddyserver.com/docs/caddyfile
  
  
 +
[[/etc/caddy/Caddyfile]]
 +
 +
/var/snap/rocketchat-server/current/Caddyfile
 +
 +
https://your_domain:yourport {
 +
  tls self_signed
 +
  proxy / 127.0.0.1:4000 {
 +
  [[websocket]]
 +
  [[transparent]]
 +
  }
 +
}
 +
 +
 +
 +
_caddy-url_
 +
proxy / localhost:_port_ {
 +
  websocket
 +
  transparent
 +
}
 +
 +
 +
([[cors]]) {
 +
@origin{args.0} header Origin {args.0}
 +
header @origin{args.0} [[Access-Control-Allow-Origin]] "{args.0}"
 +
header @origin{args.0} [[Vary Origin]]
 +
}
 +
 +
:8088 {
 +
reverse_proxy {$RPC_ENDPOINT_URL}:{$RPC_PORT}
 +
 
 +
import cors {$RPC_HOSTNAME}
 +
 +
log {
 +
output stdout
 +
}
 +
}
 +
 +
== Related terms ==
 +
* [[Rocket.Chat]]
 +
* [[Dockerfile]]
 +
* [[Makefile]]
 +
* [[(cors)]]
  
 
== See also ==
 
== See also ==
 
* {{Caddy}}
 
* {{Caddy}}
 +
* {{Web server}}
 +
 +
[[Category:Internet]]

Latest revision as of 15:17, 16 August 2023


/etc/caddy/Caddyfile
/var/snap/rocketchat-server/current/Caddyfile
https://your_domain:yourport {
 tls self_signed
 proxy / 127.0.0.1:4000 {
 websocket
 transparent
 }
}


_caddy-url_
proxy / localhost:_port_ {
 websocket
 transparent
} 


(cors) {
	@origin{args.0} header Origin {args.0}
	header @origin{args.0} Access-Control-Allow-Origin "{args.0}"
	header @origin{args.0} Vary Origin
}

:8088 {
	 reverse_proxy {$RPC_ENDPOINT_URL}:{$RPC_PORT}
 
	import cors {$RPC_HOSTNAME}

	log {
		output stdout
	}
}

Related terms[edit]

See also[edit]

Advertising: