work in progress
This commit is contained in:
@@ -1,72 +0,0 @@
|
||||
server {
|
||||
listen 8080;
|
||||
server_name paste.linuxiarz.pl;
|
||||
set $base /var/www/paste.linuxiarz.pl;
|
||||
root $base;
|
||||
|
||||
# security
|
||||
include config/security_paste.conf;
|
||||
|
||||
status_zone paste.linuxiarz.pl_backend;
|
||||
|
||||
# restrict methods
|
||||
if ($request_method !~ ^(GET|POST)$) {
|
||||
return '405';
|
||||
}
|
||||
|
||||
# index.php
|
||||
index index.php;
|
||||
|
||||
# index.php fallback
|
||||
location / {
|
||||
try_files $uri /index.php;
|
||||
}
|
||||
|
||||
if ($request_uri !~* ^/(static|favicon\.ico|robots\.txt)) {
|
||||
rewrite ^/(.*)$ /index.php?/$1 last;
|
||||
break;
|
||||
}
|
||||
|
||||
# handle .php
|
||||
location ~ \.php$ {
|
||||
include config/php_fastcgi7_4.conf;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
server {
|
||||
listen 443 quic;
|
||||
listen 443 ssl;
|
||||
http2 on;
|
||||
http3 on;
|
||||
ssl_protocols TLSv1.3 TLSv1.2;
|
||||
ssl_early_data on;
|
||||
add_header Alt-Svc 'h3=":$server_port"; ma=86400';
|
||||
|
||||
server_name paste.linuxiarz.pl;
|
||||
|
||||
include config/wildcard.conf;
|
||||
|
||||
# logging
|
||||
access_log /var/log/angie/paste.linuxiarz.pl.access.log;
|
||||
error_log /var/log/angie/paste.linuxiarz.pl.error.log warn;
|
||||
|
||||
status_zone paste.linuxiarz.pl_frontend;
|
||||
|
||||
location / {
|
||||
proxy_pass http://varnish/;
|
||||
include config/proxy.conf;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
# HTTP redirect
|
||||
server {
|
||||
listen 80;
|
||||
server_name paste.linuxiarz.pl;
|
||||
add_header Alt-Svc 'h3=":443"; ma=86400';
|
||||
|
||||
location / {
|
||||
return 301 https://paste.linuxiarz.pl$request_uri;
|
||||
}
|
||||
}
|
||||
1
sites-enabled/paste.linuxiarz.pl_varnish.conf
Symbolic link
1
sites-enabled/paste.linuxiarz.pl_varnish.conf
Symbolic link
@@ -0,0 +1 @@
|
||||
../sites-available/paste.linuxiarz.pl_varnish.conf
|
||||
Reference in New Issue
Block a user