Last active
June 8, 2020 22:21
-
-
Save amanjuman/eacc42734507a86443f1a46048ba00c9 to your computer and use it in GitHub Desktop.
Camera App Config
This file contains hidden or 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 12008; | |
listen [::]:12008; | |
server_name exapmle.com; | |
# HTTP to HTTPS redirection | |
if ($scheme != "https") | |
{ | |
return 301 https://$host$request_uri; | |
} | |
location / | |
{ | |
proxy_pass http://10.128.235.96:12008; | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection 'upgrade'; | |
proxy_set_header Host $host; | |
proxy_cache_bypass $http_upgrade; | |
} | |
# Nginx Logging | |
access_log /var/log/nginx/exapmle.com-access.log; | |
error_log /var/log/nginx/exapmle.com-error.log warn; | |
# Robot Text Logging Off | |
location = /robots.txt | |
{ | |
allow all; | |
log_not_found off; | |
access_log off; | |
} | |
# Fav ICON Disable | |
location = /favicon.ico | |
{ | |
log_not_found off; | |
access_log off; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment