nginxconfig.io/dist/js/763.js

1 line
12 KiB
JavaScript

(self["webpackChunknginxconfig_io"]=self["webpackChunknginxconfig_io"]||[]).push([[763],{763:(e,o,n)=>{"use strict";n.r(o),n.d(o,{default:()=>q});const t={back:"Back",next:"Next",enable:"enable",php:"PHP",ssl:"SSL",nginx:"NGINX",http:"HTTP",https:"HTTPS",letsEncrypt:"Let's Encrypt",python:"Python",wordPress:"WordPress",drupal:"Drupal",magento:"Magento",joomla:"Joomla",django:"Django",logging:"Logging",reverseProxy:"Reverse proxy",reverseProxyLower:"reverse proxy",restrict:"Restrict",path:"Path"};var i=n(4535);const r={title:`${t.nginx}Config`,description:`The easiest way to configure a performant, secure, and stable ${t.nginx} server.`,singleColumnMode:"Single column mode",splitColumnMode:"Split column mode",perWebsiteConfig:"Per-website config",addSite:"Add site",globalConfig:"Global config",setup:"Setup",configFiles:"Config files"},s={downloadConfig:"Download Config",copyBase64:"Copy Base64",copied:"Copied",press_to_copy:"Press Ctrl+C to copy"},a={backToTop:"Back To Top",thisToolIs:"This tool is",openSourceOnGitHub:"open-source on GitHub",underThe:"under the",mit:"MIT",license:"license!",weWelcomeFeedbackAndContributions:"We welcome feedback and contributions.",originallyCreatedBy:"Originally created by",balintSzekeres:"Bálint Szekeres",maintainedBy:"maintained by",digitalOcean:"DigitalOcean"},l={enableEncryptedSslConnection:`${t.enable} encrypted ${t.ssl} connections`,http2:`${t.http}/2`,enableHttp2Connections:`${t.enable} ${t.http}/2 connections`,http3:`${t.http}/3`,enableHttp3Connections:`${t.enable} ${t.http}/3 connections`,portReuse:"Reuseport",enableReuseOfPort:`${t.enable} reuseport to generate a listening socket per worker`,forceHttps:`Force ${t.https}`,hsts:"HSTS",enableStrictTransportSecurity:`${t.enable} Strict Transport Security, requiring HTTPS connections`,enableIncludeSubDomains:`${t.enable} includeSubDomains directive, requiring HTTPS connections for ALL subdomains`,enablePreload:`${t.enable} preload directive, telling browsers to always make HTTPS connections only`,certificationType:"Certification type",customCertificate:"Custom certificate",letsEncryptEmail:`${t.letsEncrypt} email`,http3Warning1:"HTTP/3 isn't a standard NGINX module, check the ",http3Warning2:"NGINX QUIC readme ",http3Warning3:" or the ",http3Warning4:"Cloudflare quiche project ",http3Warning5:" for how to build NGINX with HTTP/3!"},c={byDomain:"by domain",enableForThisDomain:`${t.enable} for this domain`},d={phpIsDisabled:`${t.php} is disabled.`,phpCannotBeEnabledWithReverseProxy:`${t.php} cannot be enabled whilst the reverse proxy is enabled.`,phpCannotBeEnabledWithPython:`${t.php} cannot be enabled whilst ${t.python} is enabled.`,enablePhp:`${t.enable} ${t.php}`,wordPressRules:`${t.wordPress} rules`,enableWordPressRules:`${t.enable} ${t.wordPress}-specific rules`,drupalRules:`${t.drupal} rules`,enableDrupalRules:`${t.enable} ${t.drupal}-specific rules`,magentoRules:`${t.magento} rules`,enableMagentoRules:`${t.enable} ${t.magento}-specific rules`,joomlaRules:`${t.joomla} rules`,enableJoomlaRules:`${t.enable} ${t.joomla}-specific rules`,phpServer:`${t.php} server`,phpBackupServer:`${t.php} backup server`,tcp:"TCP",hhvmSocket:"HHVM socket",php5Socket:"5.x socket",php70Socket:"7.0 socket",php71Socket:"7.1 socket",php72Socket:"7.2 socket",php73Socket:"7.3 socket",php74Socket:"7.4 socket",php80Socket:"8.0 socket",phpSocket:"PHP socket",custom:"Custom",disabled:"Disabled"},u={presets:"Presets",itLooksLikeYouCustomisedTheConfig:"It looks like you've customised the configuration for this domain. Choosing a new preset may reset or change some of the settings that you've customised.",frontend:"Frontend",nodeJs:"Node.js",singlePageApplication:"Single-page application"},p={pythonIsDisabled:`${t.python} is disabled.`,pythonCannotBeEnabledWithReverseProxy:`${t.python} cannot be enabled whilst the reverse proxy is enabled.`,pythonCannotBeEnabledWithPhp:`${t.python} cannot be enabled whilst ${t.php} is enabled.`,enablePython:`${t.enable} ${t.python}`,djangoRules:`${t.django} rules`,enableDjangoRules:`${t.enable} ${t.django}-specific rules`},g={reverseProxyIsDisabled:`${t.reverseProxy} is disabled.`,reverseProxyCannotBeEnabledWithPhp:`${t.reverseProxy} cannot be enabled whilst ${t.php} is enabled.`,reverseProxyCannotBeEnabledWithPython:`${t.reverseProxy} cannot be enabled whilst ${t.python} is enabled.`,enableReverseProxy:`${t.enable} ${t.reverseProxyLower}`},b={fallbackRouting:"Fallback routing",fallbackRoutingPhpPath:`Fallback routing ${t.php} path`,legacyPhpRouting:`Legacy ${t.php} routing`,enableLegacyRouting:`${t.enable} legacy routing`,routing:"Routing"},h={domain:"Domain",documentRoot:"Document root",oneOrMoreOtherDomainsAreAlsoNamed:"One or more other domains are also named",thisWillCauseIssuesWithConfigGeneration:"This will cause issues with config generation.",wwwSubdomain:"www subdomain",cdnSubdomain:"CDN subdomain",redirectSubdomains:"Redirect subdomains",server:"Server",listen:"listen"},m={disableForThisDomain:"disable for this domain",responseCode:"Response code"},f="Onion",y={onion:f,onionLocation:`${f} location`,provideAnOnionLocationToSetOnionLocationHeader:"Provide an onion location address to set the Onion-Location header for your site.",letsVisitorsKnownOnionServicesIsAvailable:"This lets visitors know that an onion services version of your site is available for Tor browsers.",learnMoreAboutOnionServices:"Learn more about Onion services",onionLocationExpectedToEndWithOnion:"Onion location addresses normally end with `.onion`."},$={https:l,logging:c,php:d,presets:u,python:p,reverseProxy:g,routing:b,server:h,restrict:m,onion:y},C="Mozilla",v="IPv4",w="IPv6",S={sslProfile:`${t.ssl} Profile`,httpsMustBeEnabledOnOneSite:`${t.https} must be enabled on at least one site to configure global ${t.https} settings.`,ocspDnsResolvers:"OCSP DNS Resolvers",cloudflareResolver:"Cloudflare Resolver",googlePublicDns:"Google Public DNS",openDns:"OpenDNS",quad9:"Quad9",verisign:"Verisign",letsEncryptWebroot:`${t.letsEncrypt} webroot`,letsEncryptCertRoot:`${t.letsEncrypt} certificate directory`,mozillaModern:`${C} Modern`,mozillaIntermediate:`${C} Intermediate`,mozillaOld:`${C} Old`,ipv4Only:`${v} only`,ipv6Only:`${w} only`,ipv4AndIpv6:`${v} & ${w}`},k={enableFileNotFoundErrorLogging:`${t.enable} file not found error logging in`,logformat:"log_format",enableCloudflare:"add Cloudflare request headers to the default log format",cfRay:"CF-Ray",cfConnectingIp:"CF-Connecting-IP",xForwardedFor:"X-Forwarded-For",xForwardedProto:"X-Forwarded-Proto",trueClientIp:"True-Client-IP",cfIpCountry:"CF-IPCountry",cfVisitor:"CF-Visitor",cdnLoop:"CDN-Loop"},P={nginxConfigDirectory:`${t.nginx} config directory`,mb:"MB"},x={gzipCompression:"Gzip compression",enableGzipCompression:`${t.enable} gzip compression`,brotliCompression:"Brotli compression",enableBrotliCompression:`${t.enable} brotli compression`,expirationForAssets:"Expiration for assets",expirationForMedia:"Expiration for media",expirationForSvgs:"Expiration for SVGs",expirationForFonts:"Expiration for fonts",performance:"Performance"},T={pythonServer:`${t.python} server`,pythonMustBeEnabledOnOneSite:`${t.python} must be enabled on at least one site to configure global ${t.python} settings.`},D={reverseProxyMustBeEnabledOnOneSite:`${t.reverseProxy} must be enabled on at least one site to configure global ${t.reverseProxyLower} settings.`,seconds:"seconds"},R={whenUsingWordPressUnsafeEvalIsOftenRequiredToAllowFunctionality:`When using ${t.wordPress}, <code class="slim">'unsafe-eval'</code> is often required in the Content Security Policy to allow the admin panel to function correctly.`,security:"Security"},O={modularizedStructure:"Modularized structure",enableModularizedConfigFiles:`${t.enable} modularized config files`,symlinkVhost:"Symlink vhost",enableSymLinksFrom:`${t.enable} symlinks from`,to:"to",shareConfiguration:"Share configuration",resetConfiguration:"Reset configuration",resetGlobalConfig:"Reset global config",resetAllDomains:"Reset all domains",removeAllDomains:"Remove all domains",resetAllDomainsConfig:"Reset all domain configs",resetDomainConfig:"Reset domain config",removeDomain:"Remove domain",yesImSure:"Yes, I'm sure",noCancel:"No, cancel",tools:"Tools",resetGlobalConfigBody:"Are you sure you want to reset all configuration options in the global config section?",resetAllDomainsConfigBody:"Are you sure you want to reset the configuration of ALL domains?",removeAllDomainsBody:"Are you sure you want to remove ALL domain configurations?",areYouSureYouWantToResetAllConfigurationOptionsForThe:"Are you sure you want to reset all configuration options for the",domain:"domain?",areYouSureYouWantToRemoveThe:"Are you sure you want to remove the ",domainConfiguration:"domain configuration?"},I="Docker",A="Dockerfile",E={docker:I,dockerfile:A,dockerCompose:`${I} Compose`,applyDockerTweaks:`Apply ${I} tweaks`,applyDockerTweaksForNginx:`Apply configuration tweaks for running ${t.nginx} with ${I}`,applyDockerTweaksExplainer:`Updates the ${t.nginx} user to be <code class="slim">nginx</code> and the pid to <code class="slim">/var/run/nginx.pid</code>`,includeDockerfile:`Include ${A} to run ${t.nginx} with ${I}`,includeDockerCompose:`Include docker-compose to run ${t.nginx} with docker-compose`},L={https:S,logging:k,nginx:P,performance:x,python:T,reverseProxy:D,security:R,tools:O,docker:E},F="Certbot",N={commentOutSslDirectivesInConfiguration:`Comment out ${t.ssl} related directives in the configuration:`,reloadYourNginxServer:`Reload your ${t.nginx} server:`,obtainSslCertificatesFromLetsEncrypt:`Obtain ${t.ssl} certificates from ${t.letsEncrypt} using ${F}:`,uncommentSslDirectivesInConfiguration:`Uncomment ${t.ssl} related directives in the configuration:`,configureCertbotToReloadNginxOnCertificateRenewal:`Configure ${F} to reload ${t.nginx} when it successfully renews certificates:`,certbotDoesNotNeedToBeSetupForYourConfiguration:`${F} does not need to be set up for your ${t.nginx} configuration.`,certbot:F},B={downloadTheGeneratedConfig:"<b>Download</b> the generated config:",andUploadItToYourServers:"and <b>upload</b> it to your server's",directory:"directory.",or:"or, ",copyBase64StringOfCompressedConfig:"Copy a base64 string of the compressed config",pasteItInYourServersCommandLineAndExecute:", paste it in your server's command line and execute it.",navigateToYourNginxConfigurationDirectoryOnYourServer:`Navigate to your ${t.nginx} <b>configuration directory</b> on your server:`,createABackupOfYourCurrentNginxConfiguration:`Create a <b>backup</b> of your current ${t.nginx} configuration:`,extractTheNewCompressedConfigurationArchiveUsingTar:"<b>Extract</b> the new compressed configuration archive using tar:",download:"Download"},W={letsGoLive:"Let's go live!",reloadNginxToLoadInYourNewConfiguration:`Reload ${t.nginx} to load in your new configuration:`,goLive:"Go live!"},G={generateDiffieHellmanKeysByRunningThisCommandOnYourServer:"Generate <b>Diffie-Hellman keys</b> by running this command on your server:",createACommonAcmeChallengeDirectoryForLetsEncrypt:`Create a common <b>ACME-challenge</b> directory (for <b>${t.letsEncrypt}</b>):`,noAdditionalStepsAreNeededToSetUpSslForNginx:`No additional steps are needed to set up ${t.ssl} for your ${t.nginx} configuration.`,sslInit:`${t.ssl} init`},H={certbot:N,download:B,goLive:W,ssl:G},M={lookingForAPlaceToDeploy:"👋 Looking for a place to deploy your new configuration?",tryOutDigitalOceansDroplet:"Try out DigitalOcean's LEMP Droplet with NGINX"},Y={wantToContributeChanges:"👋 Want to request new features, contribute changes, or translate the tool into a new language?",getInvolvedOnGitHub:"Get involved on GitHub"},z={droplet:M,contribute:Y},j={app:r,setup:s,footer:a,domainSections:$,globalSections:L,setupSections:H,callouts:z},q={common:t,languages:i.default,templates:j}}}]);