-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
418 additions
and
77 deletions.
There are no files selected for viewing
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
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
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
@font-face { | ||
font-family: "Beau Rivage"; | ||
src: url('/assets/BeauRivage-Regular.ttf') format('truetype'); | ||
font-display: swap; | ||
} | ||
|
||
body { | ||
font-family: Roboto; | ||
} | ||
|
||
/* letra titulos*/ | ||
h1 { | ||
font-family: "Beau Rivage", serif; | ||
font-weight: bold; | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
require_relative 'boot' | ||
require 'rails/all' | ||
|
||
# Requiere gemas listas en el Gemfile, incluyendo las | ||
# limitadas a :test, :development, o :production. | ||
Bundler.require(*Rails.groups) | ||
|
||
module Sivel2 | ||
class Application < Rails::Application | ||
# Settings in config/environments/* take precedence over those specified here. | ||
config.load_defaults 7.0 | ||
|
||
config.action_view.form_with_generates_remote_forms = false | ||
|
||
# Application configuration should go into files in config/initializers | ||
# -- all .rb files in that directory are automatically loaded. | ||
|
||
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone. | ||
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC. | ||
config.time_zone = 'America/Bogota' | ||
|
||
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded. | ||
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s] | ||
config.i18n.default_locale = :es | ||
|
||
config.active_record.schema_format = :sql | ||
|
||
puts "CONFIG_HOSTS="+ENV.fetch('CONFIG_HOSTS', 'defensor.info').to_s | ||
config.hosts.concat( | ||
ENV.fetch('CONFIG_HOSTS', 'defensor.info').downcase.split(";")) | ||
|
||
config.relative_url_root = ENV.fetch('RUTA_RELATIVA', "/sivel2.1") | ||
|
||
config.action_dispatch.default_headers = { | ||
'X-Frame-Options' => 'ALLOW' | ||
} | ||
|
||
config.x.origen_cors = ENV.fetch('ORIGEN_CORS','').split(',') | ||
puts "config.x.origen_cors=#{config.x.origen_cors.inspect}" | ||
|
||
# sip | ||
config.x.formato_fecha = ENV.fetch('FORMATO_FECHA', 'dd/M/yyyy') | ||
|
||
# heb412 | ||
config.x.heb412_ruta = Pathname( | ||
ENV.fetch('HEB412_RUTA', Rails.root.join('public', 'heb412').to_s) | ||
) | ||
|
||
# sivel2 | ||
config.x.sivel2_consulta_web_publica = | ||
(ENV['SIVEL2_CONSWEB_PUBLICA'] && ENV['SIVEL2_CONSWEB_PUBLICA'] != '') | ||
|
||
config.x.sivel2_consweb_max = ENV.fetch('SIVEL2_CONSWEB_MAX', 2000) | ||
|
||
config.x.sivel2_consweb_pie = ENV.fetch('SIVEL2_CONSWEB_PIE', '') | ||
|
||
config.x.sivel2_consweb_epilogo = ENV.fetch( | ||
'SIVEL2_CONSWEB_EPILOGO', | ||
"<br>Si requiere más puede suscribirse a SIVeL Pro" | ||
).html_safe | ||
|
||
config.x.sivel2_mapaosm_diasatras = ENV.fetch( | ||
'SIVEL2_MAPAOSM_DIASATRAS', 182 | ||
) | ||
|
||
end | ||
end | ||
|
Oops, something went wrong.