feat: Initial observations endpoint
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Name of your application. Used to uniquely configure containers.
|
||||
# Name of your application. Used to uniquely configure containers.deploy
|
||||
service: yockboard
|
||||
|
||||
# Name of the container image (use your-user/app-name on external registries).
|
||||
@@ -7,7 +7,7 @@ image: yockboard
|
||||
# Deploy to these servers.
|
||||
servers:
|
||||
web:
|
||||
- 192.168.0.1
|
||||
- 103.163.186.137
|
||||
# job:
|
||||
# hosts:
|
||||
# - 192.168.0.1
|
||||
@@ -20,9 +20,9 @@ servers:
|
||||
#
|
||||
# Don't use this when deploying to multiple web servers (then you have to terminate SSL at your load balancer).
|
||||
#
|
||||
# proxy:
|
||||
# ssl: true
|
||||
# host: app.example.com
|
||||
proxy:
|
||||
ssl: true
|
||||
host: yockboard.yock.dev
|
||||
|
||||
# Where you keep your container images.
|
||||
registry:
|
||||
@@ -41,6 +41,7 @@ env:
|
||||
secret:
|
||||
- RAILS_MASTER_KEY
|
||||
clear:
|
||||
PORT: 3005
|
||||
# Run the Solid Queue Supervisor inside the web server's Puma process to do jobs.
|
||||
# When you start using multiple servers, you should split out job processing to a dedicated machine.
|
||||
SOLID_QUEUE_IN_PUMA: true
|
||||
|
||||
@@ -2,6 +2,9 @@ require "active_support/core_ext/integer/time"
|
||||
|
||||
Rails.application.configure do
|
||||
# Settings specified here will take precedence over those in config/application.rb.
|
||||
config.hosts = [
|
||||
"yockboard.yock.dev", # Allow requests from example.com
|
||||
]
|
||||
|
||||
# Make code changes take effect immediately without server restart.
|
||||
config.enable_reloading = true
|
||||
|
||||
@@ -80,10 +80,9 @@ Rails.application.configure do
|
||||
config.active_record.attributes_for_inspect = [ :id ]
|
||||
|
||||
# Enable DNS rebinding protection and other `Host` header attacks.
|
||||
# config.hosts = [
|
||||
# "example.com", # Allow requests from example.com
|
||||
# /.*\.example\.com/ # Allow requests from subdomains like `www.example.com`
|
||||
# ]
|
||||
config.hosts = [
|
||||
"yockboard.yock.dev", # Allow requests from example.com
|
||||
]
|
||||
#
|
||||
# Skip DNS rebinding protection for the default health check endpoint.
|
||||
# config.host_authorization = { exclude: ->(request) { request.path == "/up" } }
|
||||
|
||||
@@ -11,6 +11,6 @@
|
||||
# end
|
||||
|
||||
# These inflection rules are supported but not enabled by default:
|
||||
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
||||
# inflect.acronym "RESTful"
|
||||
# end
|
||||
ActiveSupport::Inflector.inflections(:en) do |inflect|
|
||||
inflect.acronym 'API'
|
||||
end
|
||||
|
||||
@@ -11,4 +11,12 @@ Rails.application.routes.draw do
|
||||
|
||||
# Defines the root path route ("/")
|
||||
# root "posts#index"
|
||||
|
||||
namespace :api do
|
||||
namespace :v1 do
|
||||
namespace :weather do
|
||||
resources :observations
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user