Skip to content

TimoRuetten/meteor-flow-router-ssr-request

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Flow-Router-SSR Request

Get access to the request object while server side rendering by calling the global method lastRequest (Server only).

Install

meteor add timoruetten:flow-router-ssr-request

Usage

FlowRouter.lastRequest();

Return

Full request object.

alt tag

Using wildcard subdomains with nginx

Add a virtual host with

map $http_upgrade $connection_upgrade {
    default upgrade;
    '' close;
}

server {
  listen 80;
  server_name *.myapp.io;
  location / {
    proxy_pass http://127.0.0.1:3000;
    proxy_set_header Host $host;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection $connection_upgrade;
    proxy_set_header X-Forwarded-For $remote_addr; # preserve client IP
    proxy_set_header X-Forward-Proto https;                                               
  }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published