Commit 30dbb7e0 by terryshi

update

1 parent 2ae49abf
Showing 1 changed file with 20 additions and 0 deletions
...@@ -20,3 +20,23 @@ port mapping ...@@ -20,3 +20,23 @@ port mapping
``` ```
##make sure database host is mariadb ##make sure database host is mariadb
## nignx
upstream your_domain_name {
server 127.0.0.1:port;
}
server
{
listen 80;
server_name your_domain_name;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_pass http://your_domain_name;
}
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!