-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Successful using akka in bot as tiny https server that receive
messages from telegram servers. Bot communicate with telegram servers via local installed 3proxy through SOCKS. Thanks author of bot4 "Alfonso² Peterssen" and issue bot4s/telegram#76
- Loading branch information
1 parent
50dd503
commit 2e86690
Showing
6 changed files
with
314 additions
and
655 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,38 @@ | ||
|
||
-------------------------------------------------------------------------------------- | ||
KEYS: | ||
C:\jdk1.8.0_181\bin\keytool -genkey -keyalg RSA -alias mtspredbot -keystore mtspredbot.jks -storepass 333333 -validity 360 -keysize 2048 | ||
C:\jdk1.8.0_181\bin\keytool -importkeystore -srckeystore mtspredbot.jks -destkeystore mtspredbot.p12 -srcstoretype jks -deststoretype pkcs12 | ||
C:\openssl\openssl pkcs12 -in mtspredbot.p12 -out mtspredbot.pem | ||
|
||
C:\jdk1.8.0_181\bin\keytool -genkey -keyalg RSA -alias mtspredbot -keystore mtspredbotjks.jks -storepass XXXXXXXXXXXXXXX -validity 360 -keysize 2048 | ||
C:\jdk1.8.0_181\bin\keytool -importkeystore -srckeystore mtspredbotjks.jks -destkeystore mtspredbotkcs.p12 -srcstoretype jks -deststoretype pkcs12 | ||
C:\openssl\openssl pkcs12 -in C:\tcert\mtspredbotkcs.p12 -out C:\tcert\mtspredbot.pem -nokeys | ||
manually edit mtspredbot.pem and stay only public cert: | ||
|
||
-------------------------------------------------------------------------------------- | ||
ngrok authkey XXXXXXXXXXXXXXXXXXXX | ||
Authtoken saved to configuration file: C:\Users\Administrator/.ngrok2/ngrok.yml | ||
ngrok http 8443 | ||
Bag Attributes | ||
friendlyName: mtspredbot | ||
localKeyID: | ||
... | ||
-----BEGIN CERTIFICATE----- | ||
hexstaffhere | ||
... | ||
-----END CERTIFICATE----- | ||
|
||
Session Status online | ||
Account (Plan: Free) | ||
Version 2.3.30 | ||
Region United States (us) | ||
Web Interface http://127.0.0.1:4040 | ||
Forwarding https://59913958.ngrok.io -> http://localhost:8443 | ||
-------------------------------------------------------------------------------------- | ||
control.conf | ||
|
||
teleg { | ||
token="xxxxxxxxxxx" | ||
chatid=111 | ||
user_admin=222 | ||
webhook_port=8443 | ||
webhookUrl="https://12.34.56.78:8443" | ||
keyStorePassword=333333 | ||
} | ||
|
||
val baseUrl = "http://VDS ip:8443" | ||
val client = new AkkaHttpClient(botToken) | ||
override val port = 8443 | ||
override val webhookUrl = "https://59913958.ngrok.io" | ||
cassandra { | ||
src { | ||
ip="12.34.56.78" | ||
dc="datacenter1" | ||
} | ||
} | ||
|
||
-------------------------------------------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.