This file contains hidden or 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
| { | |
| __schema { | |
| queryType { name } | |
| mutationType { name } | |
| subscriptionType { name } | |
| types { | |
| ...FullType | |
| } | |
| } | |
| } |
This file contains hidden or 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
| #!/bin/bash | |
| # ───────────────────────────────────────────────────────────────────────────── | |
| # Production Docker Host Setup & Hardening Script — v3.1.0 | |
| # For Ubuntu Server 24.04 LTS (Noble) and 26.04 LTS (Resolute) | |
| # Suitable for both Kamal 2.x deployment hosts and remote builder hosts | |
| # | |
| # Part of RailsFast (https://railsfast.com) — free & open source, MIT licensed. | |
| # | |
| # Usage (as root, on a fresh server): |
This file contains hidden or 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
| require 'sinatra' | |
| require 'pp' | |
| require 'redis' | |
| require 'json' | |
| configure do | |
| redis = JSON.parse(ENV['VMC_SERVICES']).select {|srvc| srvc['name'] =~ /redis-.*?/ }.first['options'] | |
| redis_conf = {:host => redis['hostname'], :port => redis['port'], :password => redis['password']} | |
| @@redis = Redis.new redis_conf |