-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add node server. Fix scripts. Fix sample folder
- Loading branch information
1 parent
dd61ad8
commit c553afa
Showing
16 changed files
with
260 additions
and
87 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
# Variable automaticaly replaced: | ||
# SSL_INCLUDE, COMMON_DOMAIN, PARSED_DOMAINS, DOMAIN_1LVL, DOMAIN_2LVL, CERTIFICATE_DOMAIN | ||
|
||
# allow domains: | ||
# | ||
# <domains-include>DOMAIN_COMMON</domains-include> | ||
# | ||
# parsed domains: $PARSED_DOMAINS | ||
|
||
# root path: | ||
# | ||
# <root-path>/var/www/html</root-path> | ||
|
||
# change certificate domain: | ||
# | ||
# <certificate-domain>$CERTIFICATE_DOMAIN</certificate-domain> | ||
|
||
# Custom snippets: | ||
# | ||
# <custom-snippets></custom-snippets> | ||
|
||
server { | ||
charset utf-8; | ||
client_max_body_size 128M; | ||
|
||
listen 80$DEFAULT; | ||
|
||
server_name $COMMON_DOMAIN; | ||
|
||
root $ROOT_PATH; | ||
index index.html; | ||
|
||
# if ssl certificate exist for domain, here will be included ssl directives | ||
$SSL_INCLUDE | ||
|
||
include snippets/letsencrypt-acme-challenge.conf; | ||
include snippets/protection.conf; | ||
include snippets/rewrite.conf; | ||
include snippets/blacklist_ip.conf; | ||
|
||
$CUSTOM_SNIPPETS | ||
|
||
location = /favicon.ico { | ||
log_not_found off; | ||
access_log off; | ||
} | ||
|
||
location = /robots.txt { | ||
allow all; | ||
log_not_found off; | ||
access_log off; | ||
} | ||
|
||
location / { | ||
limit_conn conn_limit_per_ip 10; | ||
limit_req zone=req_limit_per_ip burst=10 nodelay; | ||
proxy_buffers 4 32k; | ||
proxy_buffer_size 32k; | ||
proxy_busy_buffers_size 32k; | ||
|
||
proxy_pass http://server:3000; | ||
proxy_redirect off; | ||
|
||
proxy_set_header Host $host; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header X-Forwarded-Host $server_name; | ||
proxy_set_header Upgrade $http_upgrade; | ||
proxy_set_header Connection "upgrade"; | ||
} | ||
} |
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
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
Oops, something went wrong.