12/28/2022 0 Comments Cs cz servers steam![]() ![]() ![]() ![]() APIĪSF IPC offers a full API for bots management that can be accessed by sending appropriate requests to appropriate endpoints. ĪSF is now listening on for incoming IPC connections (or whatever IPCPrefixes you specified in the config).Ĭommunication with IPC server provided by ASF can be done via any http-compatible program, including classical web browsers, as well as CLI utilities such as curl. INFO|ASF|StartServer() Starting IPC server on. If configuration was set correctly, you should notice that IPC service is active: You might also want to make use of -process-required command-line argument, although that is entirely optional, just a mere mention. To start IPC, you must enable IPC global configuration property. This way you can use fully secured connection to your ASF instance, as shown below. # We add those 3 extra options for websockets proxying, see proxy_http_version 1.1 Proxy_set_header X-Forwarded-Server $host Proxy_set_header X-Forwarded-Proto $scheme Proxy_set_header X-Forwarded-Host $host: $server_port # proxy_set_header Host 127.0.0.1 # Only if you need to override default host proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for Ssl_certificate_key /path/to/your/certificate.key Ssl_certificate /path/to/your/certificate.crt Please refer to nginx documentation for further explanation. We included full server block, although you're interested mainly in location ones. Example nginx configuration can be found below. This way you can have full control over your http server and you can set it up however you wish instead of being limited to given set of features ASF's HttpListener decided to support. It's strongly suggested to use reverse proxy for that, such as nginx. Can I use HTTPS protocol with proper encryption?ĪSF deploys only very minimalistic HttpListener, which itself does support using HTTPS protocol and setting appropriate certificates, but supporting that feature in ASF would make it far more complex than it already is, and would still be problematic for certificates management. On top of all of that, you can also set IPCPassword, which would add another layer of extra security. In addition to that, server must include properly set non-zero SteamOwnerID, otherwise it'll refuse to execute any command, as an extra security measure. If you decide to change default 127.0.0.1 bind address to something else, such as *, then you're supposed to set proper firewall rules yourself in order to allow only authorized IPs to access ASF port. Is this secure?ĪSF by default listens only on 127.0.0.1 address, which means that accessing ASF IPC from any other machine but your own is impossible. However, you can use IPC too, if you consider it useful/easier for you. For casual commands execution it should be easier for you to communicate with ASF through steam chat with one of the bots. API allows you to code your own tools and scripts that communicate with ASF, while GUI allows you to consume those APIs in user-friendly way. Right now IPC offers two "modes" for you to use - the API, and user-friendly GUI. However, IPC offers much more than just issuing commands, as it integrates all major ASF features in one place. IPC stands for inter-process communication and has a very similar functionality to issuing commands through Steam chat - it allows you to control ASF process during execution. For more info about SteamOwnerID, visit configuration. Default value will make IPC work, but not authorizing anyone to send commands ( 400 BadRequest). In order to use it, you should set SteamOwnerID to the proper non-zero value. IPC is always executed with SteamOwnerID permissions, which is 0 by default. This is offered as an alternative to already existing steam chat communication. Starting with version 3.0, ASF offers http-based inter-process communication that can be used to communicate with the process.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |