Created
August 5, 2016 10:10
-
-
Save JerzySpendel/0ed1c462518c5a179578d7fdd3ee511e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name nook.dev.skygate.pl; | |
charset utf-8; | |
client_max_body_size 75M; | |
location ~* ^.+\.(jpg|jpeg|gif|png|ico|css|zip|ipa|tgz|gz|rar|bz2|pdf|txt|tar|wav|bmp|rtf|js|flv|swf|html|htm)$ { | |
root /srv/nook/backend/nook-app/public; | |
} | |
location / { | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Real-Uri $request_uri; | |
proxy_set_header Host $http_host; | |
proxy_set_header X-Nginx-Proxy true; | |
proxy_pass http://127.0.0.1:3000; | |
proxy_redirect off; | |
} | |
location /phpmyadmin { | |
root /usr/share; | |
fastcgi_split_path_info ^(.+\.php)(/.+)$; | |
fastcgi_pass unix:/var/run/php5-fpm.sock; | |
fastcgi_index index.php; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
include fastcgi_params; | |
} | |
} | |
server { | |
listen 5000; | |
location / { | |
proxy_pass http://localhost:5001; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment