Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
- nginx: configuration file /etc/nginx/nginx.conf test is successful
- # configuration file /etc/nginx/nginx.conf:
- # Generated by nginxconfig.io
- # https://www.digitalocean.com/community/tools/nginx?domains.0.server.domain=shot-on-top.com&domains.0.server.path=%2Fvar%2Fwww%2Fwww-root%2Fdata%2Fwww&domains.0.server.documentRoot=%2Fshot-on-top.com&domains.0.php.php=false&domains.0.reverseProxy.reverseProxy=true&domains.0.reverseProxy.path=%2Fvar%2Fwww%2Fnodejs%2F&domains.0.reverseProxy.proxyPass=http%3A%2F%2F5.63.152.158%3A5000&domains.0.routing.index=index.html&domains.0.routing.fallbackHtml=true&domains.0.routing.fallbackPhp=false&global.security.serverTokens=true&global.nginx.user=www-root
- user www-root;
- pid /run/nginx.pid;
- worker_processes auto;
- worker_rlimit_nofile 65535;
- events {
- multi_accept on;
- worker_connections 65535;
- }
- http {
- charset utf-8;
- sendfile on;
- tcp_nopush on;
- tcp_nodelay on;
- log_not_found off;
- types_hash_max_size 2048;
- client_max_body_size 16M;
- # MIME
- include mime.types;
- default_type application/octet-stream;
- # Logging
- access_log /var/log/nginx/access.log;
- error_log /var/log/nginx/error.log warn;
- # SSL
- ssl_session_timeout 1d;
- ssl_session_cache shared:SSL:10m;
- ssl_session_tickets off;
- # Diffie-Hellman parameter for DHE ciphersuites
- ssl_dhparam /etc/nginx/dhparam.pem;
- # Mozilla Intermediate configuration
- ssl_protocols TLSv1.2 TLSv1.3;
- ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;
- # OCSP Stapling
- ssl_stapling on;
- ssl_stapling_verify on;
- resolver 1.1.1.1 1.0.0.1 8.8.8.8 8.8.4.4 208.67.222.222 208.67.220.220 valid=60s;
- resolver_timeout 2s;
- # Load configs
- include /etc/nginx/conf.d/*.conf;
- include /etc/nginx/sites-enabled/*;
- }
- # configuration file /etc/nginx/mime.types:
- types {
- text/html html htm shtml;
- text/css css;
- text/xml xml;
- image/gif gif;
- image/jpeg jpeg jpg;
- application/javascript js;
- application/atom+xml atom;
- application/rss+xml rss;
- text/mathml mml;
- text/plain txt;
- text/vnd.sun.j2me.app-descriptor jad;
- text/vnd.wap.wml wml;
- text/x-component htc;
- image/png png;
- image/svg+xml svg svgz;
- image/tiff tif tiff;
- image/vnd.wap.wbmp wbmp;
- image/webp webp;
- image/x-icon ico;
- image/x-jng jng;
- image/x-ms-bmp bmp;
- font/woff woff;
- font/woff2 woff2;
- application/java-archive jar war ear;
- application/json json;
- application/mac-binhex40 hqx;
- application/msword doc;
- application/pdf pdf;
- application/postscript ps eps ai;
- application/rtf rtf;
- application/vnd.apple.mpegurl m3u8;
- application/vnd.google-earth.kml+xml kml;
- application/vnd.google-earth.kmz kmz;
- application/vnd.ms-excel xls;
- application/vnd.ms-fontobject eot;
- application/vnd.ms-powerpoint ppt;
- application/vnd.oasis.opendocument.graphics odg;
- application/vnd.oasis.opendocument.presentation odp;
- application/vnd.oasis.opendocument.spreadsheet ods;
- application/vnd.oasis.opendocument.text odt;
- application/vnd.openxmlformats-officedocument.presentationml.presentation
- pptx;
- application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
- xlsx;
- application/vnd.openxmlformats-officedocument.wordprocessingml.document
- docx;
- application/vnd.wap.wmlc wmlc;
- application/x-7z-compressed 7z;
- application/x-cocoa cco;
- application/x-java-archive-diff jardiff;
- application/x-java-jnlp-file jnlp;
- application/x-makeself run;
- application/x-perl pl pm;
- application/x-pilot prc pdb;
- application/x-rar-compressed rar;
- application/x-redhat-package-manager rpm;
- application/x-sea sea;
- application/x-shockwave-flash swf;
- application/x-stuffit sit;
- application/x-tcl tcl tk;
- application/x-x509-ca-cert der pem crt;
- application/x-xpinstall xpi;
- application/xhtml+xml xhtml;
- application/xspf+xml xspf;
- application/zip zip;
- application/octet-stream bin exe dll;
- application/octet-stream deb;
- application/octet-stream dmg;
- application/octet-stream iso img;
- application/octet-stream msi msp msm;
- audio/midi mid midi kar;
- audio/mpeg mp3;
- audio/ogg ogg;
- audio/x-m4a m4a;
- audio/x-realaudio ra;
- video/3gpp 3gpp 3gp;
- video/mp2t ts;
- video/mp4 mp4;
- video/mpeg mpeg mpg;
- video/quicktime mov;
- video/webm webm;
- video/x-flv flv;
- video/x-m4v m4v;
- video/x-mng mng;
- video/x-ms-asf asx asf;
- video/x-ms-wmv wmv;
- video/x-msvideo avi;
- }
- # configuration file /etc/nginx/conf.d/default.conf:
- # disabled by ISPmanager
- # configuration file /etc/nginx/conf.d/sysmon.conf:
- # configuration file /etc/nginx/sites-enabled/shot-on-top.com.conf:
- server {
- listen 443 ssl http2;
- listen [::]:443 ssl http2;
- server_name shot-on-top.com;
- root /var/www/www-root/data/www/shot-on-top.com;
- # SSL
- ssl_certificate /etc/nginx/ssl/shot-on-top.com.crt;
- ssl_certificate_key /etc/nginx/ssl/shot-on-top.com.key;
- # security
- include nginxconfig.io/security.conf;
- # index.html fallback
- location / {
- try_files $uri $uri/ /index.html;
- }
- # reverse proxy
- location /var/www/nodejs/ {
- proxy_pass http://5.63.152.158:5000;
- include nginxconfig.io/proxy.conf;
- }
- # additional config
- include nginxconfig.io/general.conf;
- }
- # subdomains redirect
- server {
- listen 443 ssl http2;
- listen [::]:443 ssl http2;
- server_name *.shot-on-top.com;
- # SSL
- ssl_certificate /etc/letsencrypt/live/shot-on-top.com/fullchain.pem;
- ssl_certificate_key /etc/letsencrypt/live/shot-on-top.com/privkey.pem;
- ssl_trusted_certificate /etc/letsencrypt/live/shot-on-top.com/chain.pem;
- return 301 https://shot-on-top.com$request_uri;
- }
- # HTTP redirect
- server {
- listen 80;
- listen [::]:80;
- include nginxconfig.io/letsencrypt.conf;
- location / {
- return 301 https://shot-on-top.com$request_uri;
- }
- }
- # configuration file /etc/nginx/nginxconfig.io/security.conf:
- # security headers
- add_header X-Frame-Options "SAMEORIGIN" always;
- add_header X-XSS-Protection "1; mode=block" always;
- add_header X-Content-Type-Options "nosniff" always;
- add_header Referrer-Policy "no-referrer-when-downgrade" always;
- add_header Content-Security-Policy "default-src 'self' http: https: data: blob: 'unsafe-inline'" always;
- add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
- # . files
- location ~ /\.(?!well-known) {
- deny all;
- }
- # configuration file /etc/nginx/nginxconfig.io/proxy.conf:
- proxy_http_version 1.1;
- proxy_cache_bypass $http_upgrade;
- # Proxy headers
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection "upgrade";
- 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-Proto $scheme;
- proxy_set_header X-Forwarded-Host $host;
- proxy_set_header X-Forwarded-Port $server_port;
- # Proxy timeouts
- proxy_connect_timeout 60s;
- proxy_send_timeout 60s;
- proxy_read_timeout 60s;
- # configuration file /etc/nginx/nginxconfig.io/general.conf:
- # favicon.ico
- location = /favicon.ico {
- log_not_found off;
- access_log off;
- }
- # robots.txt
- location = /robots.txt {
- log_not_found off;
- access_log off;
- }
- # assets, media
- location ~* \.(?:css(\.map)?|js(\.map)?|jpe?g|png|gif|ico|cur|heic|webp|tiff?|mp3|m4a|aac|ogg|midi?|wav|mp4|mov|webm|mpe?g|avi|ogv|flv|wmv)$ {
- expires 7d;
- access_log off;
- }
- # svg, fonts
- location ~* \.(?:svgz?|ttf|ttc|otf|eot|woff2?)$ {
- add_header Access-Control-Allow-Origin "*";
- expires 7d;
- access_log off;
- }
- # gzip
- gzip on;
- gzip_vary on;
- gzip_proxied any;
- gzip_comp_level 6;
- gzip_types text/plain text/css text/xml application/json application/javascript application/rss+xml application/atom+xml image/svg+xml;
- # configuration file /etc/nginx/nginxconfig.io/letsencrypt.conf:
- # ACME-challenge
- location ^~ /.well-known/acme-challenge/ {
- root /var/www/_letsencrypt;
- }
Add Comment
Please, Sign In to add comment