Browse Source

adding nginx

release/0.1
Björn 4 years ago
parent
commit
ab07b48bb4
10 changed files with 2 additions and 228 deletions
  1. +2
    -2
      .gitignore
  2. +0
    -9
      storage/cache/887379cb96b8427d61aa39b73678b202900cb648.php
  3. +0
    -7
      storage/cache/8f3a641a10e5f3da2806ddee53e0522e9158ee7b.php
  4. +0
    -44
      storage/cache/97f5c7f4e7eb0830bf2cbb7d8c98c9e7e3eda420.php
  5. +0
    -44
      storage/cache/b8be4cd44c7bf959a77084ac66540007a10ae7f2.php
  6. +0
    -16
      storage/cache/c25fb649a0065d8271813d9667d51f50825d6579.php
  7. +0
    -9
      storage/cache/d3faad602c007cdd0b7e6f2115872a4a74a46e03.php
  8. +0
    -44
      storage/cache/db33776c0af644e989accce92812804c9542ae25.php
  9. +0
    -9
      storage/cache/ea3cb35f6a6aa916c3116d6254ed92e718b1cafb.php
  10. +0
    -44
      storage/cache/f759350e6c9ffc48e248d8248ac6e8cc234e8172.php

+ 2
- 2
.gitignore View File

@ -8,8 +8,8 @@ database/database.sqlite
storage/logs/*
storage/tmp
!storage/tmp/.gitkeep
storage/cache
!storage/cache/.gitkeep
resources/templates/nginx
!resources/templates/nginx/.gitkeep

+ 0
- 9
storage/cache/887379cb96b8427d61aa39b73678b202900cb648.php View File

@ -1,9 +0,0 @@
server_name <?php echo e($domain); ?>;
# include snippets
include /etc/nginx/snippets/deny.conf;
include /etc/nginx/snippets/expires.conf;
# logs
access_log /var/log/nginx/<?php echo e($domain); ?>.access.log;
error_log /var/log/nginx/<?php echo e($domain); ?>.error.log;<?php /**PATH /home/test/Workspace/tentakelfabrik/mcp/resources/templates/nginx/partials/default.blade.php ENDPATH**/ ?>

+ 0
- 7
storage/cache/8f3a641a10e5f3da2806ddee53e0522e9158ee7b.php View File

@ -1,7 +0,0 @@
server {
location / {
try_files $uri $uri/ /index.php;
}
}
<?php /**PATH /home/test/Workspace/tentakelfabrik/mcp/resources/templates/nginx/flight.blade.php ENDPATH**/ ?>

+ 0
- 44
storage/cache/97f5c7f4e7eb0830bf2cbb7d8c98c9e7e3eda420.php View File

@ -1,44 +0,0 @@
server {
listen 80;
listen [::]:80;
server_name <?php echo e($domain); ?> <?php if($redirect_www): ?> www.<?php echo e($domain); ?> <?php endif; ?>;
return 301 https://<?php echo e($domain); ?>$request_uri;
}
<?php if($redirect_www): ?>
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
ssl_certificate /etc/letsencrypt/live/www.<?php echo e($domain); ?>/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/www.<?php echo e($domain); ?>/privkey.pem;
include snippets/ssl-params.conf;
include /etc/nginx/snippets/secure-headers.conf;
server_name www.<?php echo e($domain); ?>;
return 301 https://<?php echo e($domain); ?>$request_uri;
}
<?php endif; ?>
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
ssl_certificate /etc/letsencrypt/live/<?php echo e($domain); ?>/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/<?php echo e($domain); ?>/privkey.pem;
add_header Content-Security-Policy "
default-src 'self';
font-src 'self';
style-src 'self';
img-src 'self';
base-uri 'self';
form-action 'self';
frame-ancestors 'self';
";
<?php echo $__env->make('partials.default', ['domain' => $domain], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php echo $__env->yieldContent('server'); ?>
}<?php /**PATH /home/test/Workspace/tentakelfabrik/mcp/resources/nginx/templates/layouts/ssl.blade.php ENDPATH**/ ?>

+ 0
- 44
storage/cache/b8be4cd44c7bf959a77084ac66540007a10ae7f2.php View File

@ -1,44 +0,0 @@
<?php $__env->startSection('server'); ?>
root <?php echo e($root); ?>;
index <?php echo e($index); ?>;
# rewrite
location / {
try_files $uri $uri/ /index.php?$args;
}
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
expires max;
log_not_found off;
}
location ~ /\. {
deny all;
}
location ~* /(?:uploads|files)/.*\.php$ {
deny all;
}
# php-fpm configuration.
location ~ \.php(/|$) {
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT $realpath_root;
include /etc/nginx/fastcgi_params;
}
<?php $__env->stopSection(); ?>
<?php echo $__env->make($ssl ? 'layouts.ssl' : 'layouts.no-ssl', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/test/Workspace/tentakelfabrik/mcp/resources/templates/nginx/wordpress.blade.php ENDPATH**/ ?>

+ 0
- 16
storage/cache/c25fb649a0065d8271813d9667d51f50825d6579.php View File

@ -1,16 +0,0 @@
server {
listen 80;
listen [::]:80;
server_name <?php echo e($domain); ?> <?php if($redirect_www): ?> www.<?php echo e($domain); ?> <?php endif; ?>;
return 301 http://<?php echo e($domain); ?>$request_uri;
}
server {
listen 80;
listen [::]:80;
<?php echo $__env->make('partials.default', ['domain' => $domain], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php $__env->startSection('server'); ?>
<?php echo $__env->yieldSection(); ?>
}<?php /**PATH /home/test/Workspace/tentakelfabrik/mcp/resources/templates/nginx/layouts/no-ssl.blade.php ENDPATH**/ ?>

+ 0
- 9
storage/cache/d3faad602c007cdd0b7e6f2115872a4a74a46e03.php View File

@ -1,9 +0,0 @@
server_name <?php echo e($domain); ?>;
# include snippets
include /etc/nginx/snippets/deny.conf;
include /etc/nginx/snippets/expires.conf;
# logs
access_log /var/log/nginx/<?php echo e($domain); ?>.access.log;
error_log /var/log/nginx/<?php echo e($domain); ?>.error.log;<?php /**PATH /home/test/Workspace/tentakelfabrik/mcp/resources/nginx/templates/partials/default.blade.php ENDPATH**/ ?>

+ 0
- 44
storage/cache/db33776c0af644e989accce92812804c9542ae25.php View File

@ -1,44 +0,0 @@
server {
listen 80;
listen [::]:80;
server_name <?php echo e($domain); ?> <?php if($redirect_www): ?> www.<?php echo e($domain); ?> <?php endif; ?>;
return 301 https://<?php echo e($domain); ?>$request_uri;
}
<?php if($redirect_www): ?>
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
ssl_certificate /etc/letsencrypt/live/www.<?php echo e($domain); ?>/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/www.<?php echo e($domain); ?>/privkey.pem;
include snippets/ssl-params.conf;
include /etc/nginx/snippets/secure-headers.conf;
server_name www.<?php echo e($domain); ?>;
return 301 https://<?php echo e($domain); ?>$request_uri;
}
<?php endif; ?>
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
ssl_certificate /etc/letsencrypt/live/<?php echo e($domain); ?>/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/<?php echo e($domain); ?>/privkey.pem;
add_header Content-Security-Policy "
default-src 'self';
font-src 'self';
style-src 'self';
img-src 'self';
base-uri 'self';
form-action 'self';
frame-ancestors 'self';
";
<?php echo $__env->make('partials.default', ['domain' => $domain], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php echo $__env->yieldContent('server'); ?>
}<?php /**PATH /home/test/Workspace/tentakelfabrik/mcp/resources/templates/nginx/layouts/ssl.blade.php ENDPATH**/ ?>

+ 0
- 9
storage/cache/ea3cb35f6a6aa916c3116d6254ed92e718b1cafb.php View File

@ -1,9 +0,0 @@
<?php $__env->startSection('server'); ?>
root <?php echo e($root); ?>;
index <?php echo e($index); ?>;
location / {
try_files $uri $uri/ /index.php;
}
<?php $__env->stopSection(); ?>
<?php echo $__env->make($ssl ? 'layouts.ssl' : 'layouts.no-ssl', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/test/Workspace/tentakelfabrik/mcp/resources/nginx/templates/flight.blade.php ENDPATH**/ ?>

+ 0
- 44
storage/cache/f759350e6c9ffc48e248d8248ac6e8cc234e8172.php View File

@ -1,44 +0,0 @@
<?php $__env->startSection('server'); ?>
root <?php echo e($root); ?>;
index <?php echo e($index); ?>;
# rewrite
location / {
try_files $uri $uri/ /index.php?$args;
}
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
expires max;
log_not_found off;
}
location ~ /\. {
deny all;
}
location ~* /(?:uploads|files)/.*\.php$ {
deny all;
}
# php-fpm configuration.
location ~ \.php(/|$) {
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT $realpath_root;
include /etc/nginx/fastcgi_params;
}
<?php $__env->stopSection(); ?>
<?php echo $__env->make($ssl ? 'layouts.ssl' : 'layouts.no-ssl', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/test/Workspace/tentakelfabrik/mcp/resources/nginx/templates/wordpress.blade.php ENDPATH**/ ?>

Loading…
Cancel
Save