Skip to content
This repository was archived by the owner on Oct 1, 2018. It is now read-only.

Server Config

Dvid Silva edited this page Feb 4, 2018 · 1 revision

Nginx Configuration:

# Default server configuration
server {
	listen 80;
	server_name IP_ADDRESS;
	return 301 http://beta.codecorgi.co;
}
server {
	listen 80 default_server;
	listen [::]:80 default_server;

	# listen 443 ssl default_server;
	# listen [::]:443 ssl default_server;
	# Note: You should disable gzip for SSL traffic.
	# See: https://bugs.debian.org/773332

        root /www/corgi/frontend-react/build;
	index index.html;

	server_name _;
	location ~* \.(?:manifest|appcache|html?|xml|json)$ {
	      expires -1;
	}

	location ~ ^.+\..+$ {
	      try_files $uri =404;
   	 }

	location / {
        	try_files $uri $uri/ /index.html;
	}

	location /api {
		proxy_pass http://127.0.0.1:9500;
	}

}

Clone this wiki locally