summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Magorsch <arzano@gentoo.org>2020-04-18 02:38:35 +0200
committerMax Magorsch <arzano@gentoo.org>2020-04-18 02:50:54 +0200
commit35a41e63ebd5f6cf9d17419c150eb53a005d2e87 (patch)
treee0bcc21bbb1e7e200857cfbd52acb82b008a3a6d /config/initializers
parentDisplay version and last update in the footer (diff)
downloadglsamaker-35a41e63ebd5f6cf9d17419c150eb53a005d2e87.tar.gz
glsamaker-35a41e63ebd5f6cf9d17419c150eb53a005d2e87.tar.bz2
glsamaker-35a41e63ebd5f6cf9d17419c150eb53a005d2e87.zip
Add the initial version of the rewritten glsamaker
The glsamaker has been completly rewritten in go. It is using postgres instead of mysql now. The look and feel is based on tyrian. Signed-off-by: Max Magorsch <arzano@gentoo.org>
Diffstat (limited to 'config/initializers')
-rw-r--r--config/initializers/assets.rb11
-rw-r--r--config/initializers/backtrace_silencers.rb7
-rw-r--r--config/initializers/cookies_serializer.rb3
-rw-r--r--config/initializers/filter_parameter_logging.rb4
-rw-r--r--config/initializers/glsamaker-global.rb2
-rw-r--r--config/initializers/glsamaker.rb.sample48
-rw-r--r--config/initializers/glsamaker_constants.rb1
-rw-r--r--config/initializers/inflections.rb20
-rw-r--r--config/initializers/mime_types.rb7
-rw-r--r--config/initializers/session_store.rb3
-rw-r--r--config/initializers/time_formats.rb1
-rw-r--r--config/initializers/wrap_parameters.rb14
12 files changed, 0 insertions, 121 deletions
diff --git a/config/initializers/assets.rb b/config/initializers/assets.rb
deleted file mode 100644
index 01ef3e6..0000000
--- a/config/initializers/assets.rb
+++ /dev/null
@@ -1,11 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# Version of your assets, change this if you want to expire all your assets.
-Rails.application.config.assets.version = '1.0'
-
-# Add additional assets to the asset load path
-# Rails.application.config.assets.paths << Emoji.images_path
-
-# Precompile additional assets.
-# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
-# Rails.application.config.assets.precompile += %w( search.js )
diff --git a/config/initializers/backtrace_silencers.rb b/config/initializers/backtrace_silencers.rb
deleted file mode 100644
index 59385cd..0000000
--- a/config/initializers/backtrace_silencers.rb
+++ /dev/null
@@ -1,7 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
-# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
-
-# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
-# Rails.backtrace_cleaner.remove_silencers!
diff --git a/config/initializers/cookies_serializer.rb b/config/initializers/cookies_serializer.rb
deleted file mode 100644
index ac5f8b6..0000000
--- a/config/initializers/cookies_serializer.rb
+++ /dev/null
@@ -1,3 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-Rails.application.config.action_dispatch.cookies_serializer = :marshal
diff --git a/config/initializers/filter_parameter_logging.rb b/config/initializers/filter_parameter_logging.rb
deleted file mode 100644
index 4a994e1..0000000
--- a/config/initializers/filter_parameter_logging.rb
+++ /dev/null
@@ -1,4 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# Configure sensitive parameters which will be filtered from the log file.
-Rails.application.config.filter_parameters += [:password]
diff --git a/config/initializers/glsamaker-global.rb b/config/initializers/glsamaker-global.rb
deleted file mode 100644
index 8f85b00..0000000
--- a/config/initializers/glsamaker-global.rb
+++ /dev/null
@@ -1,2 +0,0 @@
-# The fields that templates can be applied on
-GLSAMAKER_TEMPLATE_TARGETS = %w[ title synopsis description impact workaround resolution ]
diff --git a/config/initializers/glsamaker.rb.sample b/config/initializers/glsamaker.rb.sample
deleted file mode 100644
index 7282279..0000000
--- a/config/initializers/glsamaker.rb.sample
+++ /dev/null
@@ -1,48 +0,0 @@
-# GLSAMaker local configuration
-# rename this file to glsamaker.rb
-
-# The development environment uses self-issued HTTP basic authentication
-# Since GLSAMaker doesn't track passwords, set a password here for usage e.g.
-# in ./script/server testing environments. The password applies to every user
-GLSAMAKER_DEVEL_PASSWORD = "changeme"
-
-# If you want to force GLSAMaker to use production-style auth in all
-# environments, set this to true
-GLSAMAKER_FORCE_PRODUCTION_AUTH = false
-
-# Email address of the administrative contact
-GLSAMAKER_ADMIN_EMAIL = "security@gentoo.org"
-
-# Email address to send email from
-GLSAMAKER_FROM_EMAIL = "glsamaker@gentoo.org"
-
-# Do not send any emails (for development)
-GLSAMAKER_NO_EMAIL = false
-
-# Where does the app live?
-GLSAMAKER_HOST = "localhost:3000"
-
-# Location of the Portage tree, that can be a full gentoo tree, or what this gets you:
-#
-# rsync -av rsync://rsync1.de.gentoo.org/gentoo-portage --include 'metadata' \
-# --include 'metadata/**' --include '*/*/metadata.xml' --exclude '*/*/*' \
-# --exclude scripts --exclude eclass --exclude profiles --exclude 'skel.*' \
-# --exclude 'header.txt' --exclude 'licenses' /target
-#
-GLSAMAKER_PORTDIR = "/usr/portage/"
-
-# Bugzilla login info
-GLSAMAKER_BUGZIE_SKIP = false
-GLSAMAKER_BUGZIE_HOST = 'bugs.gentoo.org'
-GLSAMAKER_BUGZIE_USER = nil
-GLSAMAKER_BUGZIE_PW = nil
-
-# Location of xmlindent(1)
-GLSAMAKER_XMLINDENT = "/usr/bin/xmlindent"
-
-# Your secret key for verifying the integrity of signed cookies.
-# If you change this key, all old signed cookies will become invalid!
-# Make sure the secret is at least 30 characters and all random,
-# no regular words or you'll be exposed to dictionary attacks.
-# Yes, this is referencing an undefined variable on purpose.
-Glsamaker::Application.config.secret_token = i_forgot_to_set_this
diff --git a/config/initializers/glsamaker_constants.rb b/config/initializers/glsamaker_constants.rb
deleted file mode 100644
index 6476c7d..0000000
--- a/config/initializers/glsamaker_constants.rb
+++ /dev/null
@@ -1 +0,0 @@
-CVE_CACHE_LAST_IMPORT = 'cve/last-import'
diff --git a/config/initializers/inflections.rb b/config/initializers/inflections.rb
deleted file mode 100644
index dfb5df0..0000000
--- a/config/initializers/inflections.rb
+++ /dev/null
@@ -1,20 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# Add new inflection rules using the following format. Inflections
-# are locale specific, and you may define rules for as many different
-# locales as you wish. All of these examples are active by default:
-# ActiveSupport::Inflector.inflections(:en) do |inflect|
-# inflect.plural /^(ox)$/i, '\1en'
-# inflect.singular /^(ox)en/i, '\1'
-# inflect.irregular 'person', 'people'
-# inflect.uncountable %w( fish sheep )
-# end
-
-ActiveSupport::Inflector.inflections(:en) do |inflect|
- inflect.singular 'cves', 'cve'
-end
-
-# These inflection rules are supported but not enabled by default:
-# ActiveSupport::Inflector.inflections(:en) do |inflect|
-# inflect.acronym 'RESTful'
-# end
diff --git a/config/initializers/mime_types.rb b/config/initializers/mime_types.rb
deleted file mode 100644
index 5f94d03..0000000
--- a/config/initializers/mime_types.rb
+++ /dev/null
@@ -1,7 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# Add new mime types for use in respond_to blocks:
-# Mime::Type.register "text/richtext", :rtf
-# Mime::Type.register_alias "text/html", :iphone
-
-Mime::Type.register "text/plain", :txt
diff --git a/config/initializers/session_store.rb b/config/initializers/session_store.rb
deleted file mode 100644
index df488ac..0000000
--- a/config/initializers/session_store.rb
+++ /dev/null
@@ -1,3 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-Rails.application.config.session_store :cookie_store, key: '_glsamaker_session'
diff --git a/config/initializers/time_formats.rb b/config/initializers/time_formats.rb
deleted file mode 100644
index 2f75d0b..0000000
--- a/config/initializers/time_formats.rb
+++ /dev/null
@@ -1 +0,0 @@
-Time::DATE_FORMATS[:default] = "%a, %d %b %y %H:%M"
diff --git a/config/initializers/wrap_parameters.rb b/config/initializers/wrap_parameters.rb
deleted file mode 100644
index 33725e9..0000000
--- a/config/initializers/wrap_parameters.rb
+++ /dev/null
@@ -1,14 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# This file contains settings for ActionController::ParamsWrapper which
-# is enabled by default.
-
-# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
-ActiveSupport.on_load(:action_controller) do
- wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
-end
-
-# To enable root element in JSON for ActiveRecord objects.
-# ActiveSupport.on_load(:active_record) do
-# self.include_root_in_json = true
-# end