Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nginx::Resource::Server: has no parameter named 'proxy_cookie_path' #1458

Closed
etowett opened this issue Jul 1, 2021 · 1 comment
Closed

Comments

@etowett
Copy link

etowett commented Jul 1, 2021

I am getting this error when I try to set this value in nginx config:

location / {
      # usual config ...
      proxy_cookie_path / "/; secure; HttpOnly; SameSite=None";
}

In puppet

nginx::resource::server { $listen_url:
    listen_port           => $listen_port,
    server_name           => $server_name,
    proxy                 => "http://${upstream_host}",
    proxy_read_timeout    => "300s",
    proxy_connect_timeout => "300s",
    proxy_cookie_path     => "path=/; secure; HttpOnly; SameSite=None",
    proxy_set_header      => [
      'Host $host',
      'X-Real-IP $remote_addr',
      'X-Forwarded-For $proxy_add_x_forwarded_for',
      'X-PROXY-CACHE $upstream_cache_status',
      'X-Forwarded-Proto $scheme',
    ]
  }

I am getting this error

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Nginx::Resource::Server[xxx.xxx.com]: has no parameter named 'proxy_cookie_path'

I am using this version of module:

# puppet --version
4.10.12

# puppet module list | grep nginx
├── puppet-nginx (v0.13.0)
@etowett
Copy link
Author

etowett commented Jul 13, 2021

Found a workaround using:

location_cfg_append   => {
      'proxy_cookie_path'      => '/ "/; secure; HttpOnly; SameSite=None"',
},

@etowett etowett closed this as completed Jul 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant