Skip to content

Commit e923223

Browse files
committed
Add nginx rails
1 parent 2539f5e commit e923223

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

nginx-rails.conf

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
server {
2+
listen 80 default_server;
3+
listen [::]:80 default_server ipv6only=on;
4+
5+
root /usr/share/nginx/html;
6+
index index.html index.htm;
7+
8+
server_name localhost;
9+
10+
location / {
11+
proxy_pass http://127.0.0.1:3000/;
12+
proxy_set_header Host $http_host;
13+
}
14+
15+
}

0 commit comments

Comments
 (0)