From b9b036ebc958498abe25cd2c2e9befae0a3c7933 Mon Sep 17 00:00:00 2001 From: Nicolas Bally Date: Sat, 19 Mar 2022 12:19:41 +0100 Subject: [PATCH] Suite --- app/controllers/public/menu_items_controller.rb | 4 ++-- app/models/contact.rb | 2 +- config/environments/production.rb | 4 +++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/app/controllers/public/menu_items_controller.rb b/app/controllers/public/menu_items_controller.rb index b90b665..0c55afc 100644 --- a/app/controllers/public/menu_items_controller.rb +++ b/app/controllers/public/menu_items_controller.rb @@ -74,12 +74,12 @@ class Public::MenuItemsController < ApplicationController require 'open-uri' - @articles_rss = JSON.parse(open('https://groupe-payre.fr/admin/articles/rss.xml?cat_id=5&breve=true').read) + @articles_rss = JSON.parse(open('https://archivespayre.quartz.xyz/admin/articles/rss.xml?cat_id=5&breve=true').read) - @breves_rss = JSON.parse(open('https://groupe-payre.fr/admin/articles/rss.xml?cat_id=5').read) + @breves_rss = JSON.parse(open('https://archivespayre.quartz.xyz/admin/articles/rss.xml?cat_id=5').read) diff --git a/app/models/contact.rb b/app/models/contact.rb index 74ec773..02d5bc9 100644 --- a/app/models/contact.rb +++ b/app/models/contact.rb @@ -31,7 +31,7 @@ class Contact < ActiveRecord::Base :provenance_id => self.provenance_id } - api_url = "https://groupe-payre.fr/admin/contacts/api" + api_url = "https://archivespayre.quartz.xyz/admin/contacts/api" #api_url ="http://localhost:3030/admin/contacts/api" @c = Curl::Easy.new(api_url) do |curl| diff --git a/config/environments/production.rb b/config/environments/production.rb index b7f624b..03dbdf2 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -1,6 +1,8 @@ Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. - + + OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE + # Code is not reloaded between requests. config.cache_classes = true