마지막 업데이트
export const handler = (event, context, callback) => {
const request = event.Records[0].cf.request;
request.headers.host[0].value = 'event.hackle.io';
return callback(null, request);
};events {}
http {
server {
listen 80;
listen [::]:80;
location / {
proxy_set_header Host event.hackle.io;
proxy_set_header X-Real-IP $http_x_forwarded_for;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
proxy_pass https://event.hackle.io/;
}
}
}const config = {
eventUrl: "https://<YOUR_PROXY_DOMAIN>"
};
createInstance(YOUR_SDK_KEY, config);HackleConfig config = HackleConfig.builder()
.eventUri("https://<YOUR_PROXY_DOMAIN>")
.build();
HackleApp.initializeApp(getApplicationContext(), YOUR_SDK_KEY, config)let config = HackleConfigBuilder()
.eventUrl(URL(string: "https://<YOUR_PROXY_DOMAIN>")!)
.build()
Hackle.initialize(sdkKey: YOUR_SDK_KEY, config: config)HackleConfig config = HackleConfigBuilder()
.eventUrl("https://<YOUR_PROXY_DOMAIN>")
.build();
await HackleApp.initialize(YOUR_SDK_KEY, hackleConfig: config);