๐Ÿ‘จโ€๐Ÿ’ป gluapack โ€” self-hosted

(Not yet rated)
You can always read the reviews or discuss this product
Media gallery
No description
Download product
This product is DLC for the product ๐Ÿ“ฆ gluapack โ€” speedy loading times. You need to purchase the core product before you can download this one.
In short

๐Ÿ“ฆ Host your own Lua file CDN with gluapack! For the technically accustomed who autorefresh often or prefer to self-host.

-

โš 


This is a FREE DLC!

Please DO NOT PURCHASE this DLC. You will not be given a full refund if you purchase this DLC. It is FREE.

You will automatically be granted access to this DLC after purchasing gluapack.

If you own gluapack and don't have access, download gluapack to get access.


๐Ÿ‘จโ€๐Ÿ’ป

Do you...?

โœ… Have a PHP webserver?

โœ… Know how to set up caching, CDNs, webservers?

โœ… Autorefresh the Lua files of your server often?

โœ… Prefer to self-host your content & infrastructure?


gluapack ๐Ÿ’ sysadmins

Upon popular request, you can now self-host your Lua files with gluapack!


Features

โœ… Works on any webserver capable of running PHP

โœ… Requires no additional configuration of your webserver

โœ… Doesn't require a database, almost completely stateless

โœ… Fully compatible with gluapack and emulates the real service

โœ… Autorefreshing Lua files will trigger the repacking of your server

โœ… Might fix your marriage

โ“

How does it work?

This is a simple PHP script that will fully emulate the gluapack service on your own infrastructure.

Your Garry's Mod server(s) will be configured to upload their packed Lua files to your endpoint, where you installed the PHP script.

The PHP script will store the packed Lua files in a location set by you, or by default, in the directory the script is installed in.

Your Garry's Mod server(s) will then set sv_downloadurl to a specially crafted URL pointing to your website, which will then handle FastDL requests appropriately.

โœจ

Installation

1. Download the script from GmodStore

2. Set up PHP and your webserver if you haven't already

3. Install the script somewhere on your webserver accessible to the Internet

4. On your Garry's Mod server(s), type gluapack_selfhost "URL TO THE SCRIPT"

5. That's it, you're done!


Recommended Extra Steps

I HIGHLY recommend that you protect your endpoint with CloudFlare, or something similar.

CloudFlare not only provide fantastic caching (saving you bandwidth costs) but will also protect you from DDoS attacks.


Custom Uploaders

If you want to use a CDN/storage service such as AWS S3, BunnyCDN, Fastly, etc. then you can write a bit of PHP code that uploads the packed Lua files in any way you like. The function looks like this:


// CUSTOM UPLOADERS

// If you know PHP, you can use this function to upload your packed Lua files elsewhere.

// For example, if you prefer to use a CDN service, you can use this to upload your files to that service.

$enable_custom_uploader = false;

$custom_uploader = function(string $pack_datastring $pack_md5string $server_idstring $proxy = null) : string {

    // $pack_data is a binary string containing the bz2 compressed clientside/shared Lua files of your server.

    // $pack_md5 is the MD5 hash of $pack_data.

    // $server_id is the unique hexadecimal ID of the Garry's Mod server.

    // $proxy is the value of sv_downloadurl on the server. You will want to redirect any requests that don't go to data/gluapack/<md5>.bsp.bz2 to this URL.

    

    // You should return the new FastDL URL that sv_downloadurl will be set to. This is the URL that connecting clients will use to download your packed Lua files, and download any extra FastDL content, if applicable.

    // Garry's Mod appends the requested file to the URL.

    return "http://my-fastdl-website.com/?server=$server_id&proxy=$proxy&asset=";

};

๐ŸŽง

Support

Due to the nature of this product, I do not offer any support.

If you think something is genuinely broken, please get in touch.

You are expected to know what you are doing when using this product, if you do not know anything about webservers, CDNs, etc. it's not recommended that you use this. gluapack already hosts your Lua files for you, and that is likely already good enough for your needs.

Product reviews

4.64 average based on 0 reviews

Download product
This product is DLC for the product ๐Ÿ“ฆ gluapack โ€” speedy loading times. You need to purchase the core product before you can download this one.
This product is marked as unsupported. That means there is no support available for this product.
Billy
3 products - 1 members
Looking for reliable and easy-to-use game server hosting with free Anycast and DDoS protection? Get 30% off your first payment at Physgun with the coupon code gmodstore at checkout.
Product details
Views:
26.2K
Purchases:
0
Added:
Updated:
Price:
Free
Languages:
English
Requirements
  • Webserver with PHP 5 or newer
  • Knowledge of webservers, CDNs, hosting, etc
Actions
Report
Search products...