rails-nginx 1.0.0.pre.beta.2 → 1.0.0.pre.beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 523da30a695f42d3980f7612dfac31b6c49272af3cd0418de4e5ef6d48db8585
4
- data.tar.gz: bc43a9dd4655582fff20bbdc7479bcd2d67f0706498efd14cdb209e7d1a33e3f
3
+ metadata.gz: 6ad4b0a55bb318d4b480cd0c1853ef84d73e58a81852011af914cc34fa4dec0c
4
+ data.tar.gz: d8424c2e24b3060628e99c2ebfa2f3913068b2275572a9509e29fb2719dbf77e
5
5
  SHA512:
6
- metadata.gz: 0cc637fda760848d474c3ff422558803a825eff90fa02cbe8d12f0cf36c1f15a57a56941c83200984f3e6ca6f7010f1b76cd4dfe82578ed288adfdd6e5a64ff2
7
- data.tar.gz: 99fa0182de6aa63dc2cf9001e71a352da5e155092301f62b69b36b0aa71728ce2d3050c022d915a2a3558d3d0ac436b085823106c432bc35ec89b2165f56eed4
6
+ metadata.gz: dcda22bcae6a801ab6914bbd17dc5745a4d84936e531cd8b54d80e4a5a768984034d4c19e2f2cf74a961bb94ea5abc0c785735c34d2fff2d53ffd4164e6ac305
7
+ data.tar.gz: 1d2bfaa5d649a45d79e351bb44ad17173208bf8691ed10e537723dd2e71fc82400786213d4885226e6950227ab4cf88322266c6534d2a6e28c80962ad7d2969f
@@ -37,8 +37,12 @@ server {
37
37
 
38
38
  <% if options[:ssl] %>
39
39
  # ssl
40
+ <% if nginx_version >= Ruby::Nginx::Version.new("1.25.1") %>
40
41
  listen 443 ssl;
41
42
  http2 on;
43
+ <% else %>
44
+ listen 443 ssl http2;
45
+ <% end %>
42
46
  ssl_certificate <%= options[:ssl_certificate_path] %>;
43
47
  ssl_certificate_key <%= options[:ssl_certificate_key_path] %>;
44
48
  <% end %>
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rails
4
4
  module Nginx
5
- VERSION = "1.0.0-beta.2"
5
+ VERSION = "1.0.0-beta.4"
6
6
  end
7
7
  end
data/lib/rails/nginx.rb CHANGED
@@ -44,6 +44,7 @@ module Rails
44
44
  domain: domain,
45
45
  port: port,
46
46
  root_path: Rails.public_path,
47
+ template_path: File.expand_path("nginx/templates/nginx.conf.erb", __dir__),
47
48
  ssl: true,
48
49
  log: true,
49
50
  ssl_certificate_path: Rails.root.join("tmp/nginx/_#{domain}.pem"),
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-nginx
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre.beta.2
4
+ version: 1.0.0.pre.beta.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bert McCutchen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-02-11 00:00:00.000000000 Z
11
+ date: 2025-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: puma
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: 1.0.0.pre.beta.2
47
+ version: 1.0.0.pre.beta.3
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: 1.0.0.pre.beta.2
54
+ version: 1.0.0.pre.beta.3
55
55
  description: Automatically configure NGINX with SSL upon boot for Rails applications.
56
56
  email:
57
57
  - mail@bertm.dev
@@ -64,7 +64,7 @@ files:
64
64
  - README.md
65
65
  - lib/puma/plugin/rails_nginx.rb
66
66
  - lib/rails/nginx.rb
67
- - lib/rails/nginx/nginx.conf.erb
67
+ - lib/rails/nginx/templates/nginx.conf.erb
68
68
  - lib/rails/nginx/version.rb
69
69
  homepage: https://github.com/bert-mccutchen/rails-nginx
70
70
  licenses: