Mattias Bodlund 3 months ago
parent
commit
474f9433b2
5 changed files with 27 additions and 27 deletions
  1. +1
    -1
      config/environments/development.rb
  2. +2
    -2
      config/environments/production.rb
  3. +1
    -1
      config/initializers/premailer_rails.rb
  4. +1
    -1
      config/locales/en.yml
  5. +22
    -22
      config/nginx.conf

+ 1
- 1
config/environments/development.rb View File

@ -44,7 +44,7 @@ Rails.application.configure do
config.action_mailer.smtp_settings = {
address: 'asmtp.bluepipe.dk',
port: 587,
domain: 'ikea-foundation-week-2025.onc.dk',
domain: 'completesentences.ikeafoundation.org',
authentication: :login,
user_name: 'oncotype@oncotype.dk',
password: 'y9usn&rpErwY'


+ 2
- 2
config/environments/production.rb View File

@ -59,12 +59,12 @@ Rails.application.configure do
config.action_mailer.delivery_method = :smtp
# Set host to be used by links generated in mailer templates.
config.action_mailer.default_url_options = { host: 'ikea-foundation-week-2025.onc.dk', protocol: 'https' }
config.action_mailer.default_url_options = { host: 'completesentences.ikeafoundation.org', protocol: 'https' }
config.action_mailer.smtp_settings = {
address: 'smtp.bluepipe.net',
port: 25,
domain: 'ikea-foundation-week-2025.onc.dk'
domain: 'completesentences.ikeafoundation.org'
}
# Specify outgoing SMTP server. Remember to add smtp/* credentials via rails credentials:edit.


+ 1
- 1
config/initializers/premailer_rails.rb View File

@ -4,5 +4,5 @@ Premailer::Rails.config.merge!(
input_encoding: 'UTF-8',
generate_text_part: true,
strategies: [:filesystem, :asset_pipeline, :network],
base_url: (Rails.env.production? ? 'ikea-foundation-week-2025.onc.dk' : 'https://gw.oncotype.dk')
base_url: (Rails.env.production? ? 'completesentences.ikeafoundation.org' : 'https://gw.oncotype.dk')
)

+ 1
- 1
config/locales/en.yml View File

@ -1,5 +1,5 @@
en:
domain: ikea-foundation-week-2025.onc.dk
domain: completesentences.ikeafoundation.org
project_name: IKEA Foundation Week 2025
client_name: IKEA Foundation


+ 22
- 22
config/nginx.conf View File

@ -16,25 +16,25 @@ server {
}
# # https
# server {
# listen 443 ssl;
# http2 on;
#
# server_name ikea-foundation-week-2025.onc.dk;
#
# # keepalive_timeout 300;
# keepalive_timeout 5;
# client_max_body_size 4G;
#
# ssl_certificate /etc/letsencrypt/live/ikea-foundation-week-2025.onc.dk/fullchain.pem; # managed by Certbot
# ssl_certificate_key /etc/letsencrypt/live/ikea-foundation-week-2025.onc.dk/privkey.pem; # managed by Certbot
# include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
# ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
#
# location / {
# return 301 https://spotlinks.ikeafoundation.org$request_uri;
# }
# }
server {
listen 443 ssl;
http2 on;
server_name ikea-foundation-week-2025.onc.dk;
# keepalive_timeout 300;
keepalive_timeout 5;
client_max_body_size 4G;
ssl_certificate /etc/letsencrypt/live/ikea-foundation-week-2025.onc.dk/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/ikea-foundation-week-2025.onc.dk/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
location / {
return 301 https://completesentences.ikeafoundation.org$request_uri;
}
}
# # http > https
# server {
@ -66,7 +66,7 @@ server {
http2 on;
# server_name spotlinks.ikeafoundation.org;
server_name ikea-foundation-week-2025.onc.dk;
server_name completesentences.ikeafoundation.org;
# keepalive_timeout 300;
keepalive_timeout 5;
@ -75,8 +75,8 @@ server {
# ssl_certificate /etc/letsencrypt/live/spotlinks.ikeafoundation.org/fullchain.pem; # managed by Certbot
# ssl_certificate_key /etc/letsencrypt/live/spotlinks.ikeafoundation.org/privkey.pem; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/ikea-foundation-week-2025.onc.dk/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/ikea-foundation-week-2025.onc.dk/privkey.pem; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/completesentences.ikeafoundation.org/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/completesentences.ikeafoundation.org/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot


Loading…
Cancel
Save