[wgo2-web/oscp] Retab and remove trailing spaces
- From: Bartłomiej Piotrowski <bpiotrowski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [wgo2-web/oscp] Retab and remove trailing spaces
- Date: Tue, 17 Aug 2021 11:30:03 +0000 (UTC)
commit b8278193b99bf3e8cd37401f07ef5d679904f986
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date: Tue Aug 17 13:29:52 2021 +0200
Retab and remove trailing spaces
nginx.conf | 74 +++++++++++++++++++++++++++++++-------------------------------
1 file changed, 37 insertions(+), 37 deletions(-)
---
diff --git a/nginx.conf b/nginx.conf
index 054f1f0..2376091 100644
--- a/nginx.conf
+++ b/nginx.conf
@@ -35,7 +35,7 @@ http {
geoip_country /usr/share/GeoIP/GeoIP.dat;
geoip_proxy 10.0.0.0/8;
map $geoip_country_code $allowed_country {
- default yes;
+ default yes;
IR no;
KP no;
SD no;
@@ -46,7 +46,7 @@ http {
map $uri $blogname {
~^(?P<blogpath>/[^/]+/)files/(.*) $blogpath;
}
-
+
map $blogname $tmp_blogid {
default -999;
include /var/www/html/wp-content/uploads/nginx-helper/map.conf;
@@ -60,29 +60,29 @@ http {
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for" "$http_host" '
- '"$blogid"';
+ '"$blogid"';
access_log /dev/stdout main;
server {
listen 8080;
listen [::]:8080;
-
+
server_name www.gnome.org;
-
+
error_log /dev/stderr;
-
+
absolute_redirect off;
-
+
root /var/www/html;
index index.php;
-
+
client_max_body_size 100M;
location /donate/ {
- if ($allowed_country = no) {
+ if ($allowed_country = no) {
return 444;
}
- try_files $uri $uri/ /index.php?$args;
+ try_files $uri $uri/ /index.php?$args;
}
rewrite ^/friends/ https://www.gnome.org/donate/ permanent;
@@ -131,19 +131,19 @@ http {
log_not_found off;
access_log off;
}
-
+
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
- location = /xmlrpc.php {
- deny all;
- access_log off;
- log_not_found off;
- return 444;
- }
+ location = /xmlrpc.php {
+ deny all;
+ access_log off;
+ log_not_found off;
+ return 444;
+ }
location ~ ^(/[^/]+/)?files/(.+) {
try_files /wp-content/blogs.dir/$blogid/files/$2 /wp-includes/ms-files.php?file=$2 ;
@@ -158,13 +158,13 @@ http {
access_log off;
log_not_found off;
}
-
+
if (!-e $request_filename) {
rewrite /wp-admin$ $scheme://$host$request_uri/ permanent;
rewrite ^(/[^/]+)?(/wp-.*) $2 last;
rewrite ^(/[^/]+)?(/.*\.php) $2 last;
}
-
+
# avoid php readfile()
location ^~ /blogs.dir {
internal;
@@ -173,11 +173,11 @@ http {
log_not_found off;
expires max;
}
-
+
location / {
try_files $uri $uri/ /index.php?$args;
}
-
+
location ~ \.php$ {
include fastcgi_params;
fastcgi_intercept_errors on;
@@ -186,7 +186,7 @@ http {
fastcgi_pass php-fpm;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
-
+
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
expires max;
log_not_found off;
@@ -208,11 +208,11 @@ http {
server {
listen 8080 default_server;
listen [::]:8080 default_server;
-
+
error_log /dev/stderr;
-
+
absolute_redirect off;
-
+
root /var/www/html;
index index.php;
@@ -228,19 +228,19 @@ http {
log_not_found off;
access_log off;
}
-
+
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
- location = /xmlrpc.php {
- deny all;
- access_log off;
- log_not_found off;
- return 444;
- }
+ location = /xmlrpc.php {
+ deny all;
+ access_log off;
+ log_not_found off;
+ return 444;
+ }
location ~ ^(/[^/]+/)?files/(.+) {
try_files /wp-content/blogs.dir/$blogid/files/$2 /wp-includes/ms-files.php?file=$2 ;
@@ -255,13 +255,13 @@ http {
access_log off;
log_not_found off;
}
-
+
if (!-e $request_filename) {
rewrite /wp-admin$ $scheme://$host$request_uri/ permanent;
rewrite ^(/[^/]+)?(/wp-.*) $2 last;
rewrite ^(/[^/]+)?(/.*\.php) $2 last;
}
-
+
# avoid php readfile()
location ^~ /blogs.dir {
internal;
@@ -270,11 +270,11 @@ http {
log_not_found off;
expires max;
}
-
+
location / {
try_files $uri $uri/ /index.php?$args;
}
-
+
location ~ \.php$ {
include fastcgi_params;
fastcgi_intercept_errors on;
@@ -283,7 +283,7 @@ http {
fastcgi_pass php-fpm;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
-
+
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
expires max;
log_not_found off;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]