freebsd-ports/mail/sympa/files/nginx.sample.in
Kurt Jaeger d573ffd406 mail/sympa: update 6.2.16 -> 6.2.22
Please note:

- Web's static dirs have moved to a single dedicated directory.
- Users should review webserver's /static configuration (examples in
  share/examples/sympa).

PR:		223793
Submitted by:	geoffroy desvernay <dgeo@centrale-marseille.fr> (maintainer)
Relnotes:	https://github.com/sympa-community/sympa/blob/6.2.22/NEWS.md
2017-11-26 20:29:06 +00:00

28 lines
856 B
Text

upstream sympafcgi {
server unix:/var/run/sympa/wwsympa.socket;
}
server {
server_name_in_redirect off;
charset utf-8;
gzip off;
location / {
fastcgi_param SCRIPT_FILENAME %%PREFIX%%/libexec/sympa/wwsympa.fcgi;
fastcgi_param PATH_INFO $fastcgi_script_name;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param REQUEST_URI $request_uri;
fastcgi_param REMOTE_ADDR $remote_addr;
fastcgi_param SERVER_NAME $host;
fastcgi_param HTTP_HOST $host;
fastcgi_param SERVER_PORT $server_port;
fastcgi_pass sympafcgi;
}
location /static-sympa {
alias %%DATADIR%%/static;
access_log off;
}
}