- Firewall
- SSH configuration
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
search argo.svc.cluster.local svc.cluster.local cluster.local | |
nameserver 8.8.8.8 | |
options ndots:5 |
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
-- First create schema/data data for tests | |
DROP TABLE api.slot CASCADE; | |
CREATE TABLE api.slot ( | |
id UUID PRIMARY KEY DEFAULT uuid_generate_v4(), | |
name TEXT, | |
latitude NUMERIC, | |
longitude NUMERIC, | |
geog geography(Point, 4326) DEFAULT NULL |
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
BEGIN; | |
CREATE OR REPLACE FUNCTION api.geog_points_in_distance(latitude NUMERIC, longitude NUMERIC, distance NUMERIC) | |
RETURNS JSON | |
SECURITY DEFINER | |
LANGUAGE PLPGSQL STABLE | |
SET search_path TO PUBLIC, api | |
AS $$ | |
DECLARE | |
_lat NUMERIC DEFAULT latitude::NUMERIC; |
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
DROP TABLE api.geog_point; | |
CREATE TABLE api.geog_point ( | |
id UUID PRIMARY KEY DEFAULT uuid_generate_v4(), | |
name TEXT, | |
latitude NUMERIC, | |
longitude NUMERIC, | |
geog geography(Point, 4326) DEFAULT NULL | |
); |
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
DROP TABLE api.geom_point; | |
CREATE TABLE api.geom_point ( | |
id UUID PRIMARY KEY DEFAULT uuid_generate_v4(), | |
name TEXT, | |
latitude NUMERIC, | |
longitude NUMERIC, | |
geom geometry(Point, 4326) DEFAULT NULL | |
); |