This commit is contained in:
Roberto Alsina 2024-05-16 16:30:05 -03:00
parent 3b1069df72
commit 8846ad3841

View File

@ -7,11 +7,10 @@ require "uuid"
require "db" require "db"
require "pg" require "pg"
USER = File.read("/var/openfaas/secrets/nombres-user").strip USER = File.read("/var/openfaas/secrets/nombres-user").strip
PASS = File.read("/var/openfaas/secrets/nombres-pass").strip PASS = File.read("/var/openfaas/secrets/nombres-pass").strip
DB_URL = "postgres://#{USER}:#{PASS}@10.61.0.1:5432/nombres" DB_URL = "postgres://#{USER}:#{PASS}@10.61.0.1:5432/nombres"
class Handler class Handler
def format_buffer(buffer, canvas_name, title = "") def format_buffer(buffer, canvas_name, title = "")
# Process the gnuplot output so it works in the page # Process the gnuplot output so it works in the page