<!--
	CDN buckets:

		- s3.amazonaws.com/files.enjin.com/

		- d2umfjgc9kwn9b.cloudfront.net
			- assets-cloud.enjin.com

-->
<ruleset name="Enjin">

	<target host="enjin.com" />
	<target host="*.enjin.com" />
	<target host="*.www.enjin.com" />
	<target host="resources.guild-hosting.net" />


	<!--	Guild subdomains set wildcard cookies. In
		order to secure them, we'd have to target
		each and every guild's subdomain...
							-->
	<securecookie host="^(?:.*\.)?enjin\.com$" name=".+" />


	<rule from="^https?://assets-cloud\.enjin\.com/"
		to="https://d2umfjgc9kwn9b.cloudfront.net/" />

	<rule from="^https?://files\.enjin\.com/"
		to="https://s3.amazonaws.com/files.enjin.com/" />

	<!--	Guilds have unique subdomains.
						-->
	<rule from="^http://([\w\-]+\.)?enjin\.com/"
		to="https://$1enjin.com/" />

	<!--	CN: *.enjin.com
				-->
	<rule from="^https?://resources\.guild-hosting\.net/"
		to="https://resources.enjin.com/" />

</ruleset>