#ATTENTION!
#
#DO NOT MODIFY THIS FILE BECAUSE IT WAS GENERATED AUTOMATICALLY,
#SO ALL YOUR CHANGES WILL BE LOST THE NEXT TIME THE FILE IS GENERATED.

server {
	listen 46.37.14.151:443 default_server ssl http2;

	server_name admin77152779.localhost;
	server_name www.admin77152779.localhost;
	server_name ipv4.admin77152779.localhost;

	ssl_certificate             /opt/psa/var/certificates/certWpPLaPv;
	ssl_certificate_key         /opt/psa/var/certificates/certWpPLaPv;

	client_max_body_size 128m;

	root "/var/www/vhosts/admin77152779.localhost/httpdocs";
	access_log "/var/www/vhosts/system/admin77152779.localhost/logs/proxy_access_ssl_log";
	error_log "/var/www/vhosts/system/admin77152779.localhost/logs/proxy_error_log";

	location ^~ /plesk-site-preview/ {
		proxy_pass http://127.0.0.1:8880;
		proxy_set_header Host             plesk-site-preview.local;
		proxy_set_header X-Real-IP        $remote_addr;
		proxy_set_header X-Forwarded-For  $proxy_add_x_forwarded_for;
		proxy_cookie_domain plesk-site-preview.local $host;
		access_log off;
	}

	#extension letsencrypt begin
	location /.well-known/acme-challenge/ {
		root /var/www/vhosts/default/htdocs;

		types { }
		default_type text/plain;

		satisfy any;
		auth_basic off;
		allow all;

		location ~ ^/\.well-known/acme-challenge.*/\. {
			deny all;
		}
	}
	#extension letsencrypt end

	location / {
		proxy_pass https://46.37.14.151:7081;
		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-Accel-Internal /internal-nginx-static-location;
		access_log off;
	}

	location /internal-nginx-static-location/ {
		alias /var/www/vhosts/admin77152779.localhost/httpdocs/;
		add_header X-Powered-By PleskLin;
		internal;
	}

}

server {
	listen 46.37.14.151:80 default_server;

	server_name admin77152779.localhost;
	server_name www.admin77152779.localhost;
	server_name ipv4.admin77152779.localhost;

	client_max_body_size 128m;

	root "/var/www/vhosts/admin77152779.localhost/httpdocs";
	access_log "/var/www/vhosts/system/admin77152779.localhost/logs/proxy_access_log";
	error_log "/var/www/vhosts/system/admin77152779.localhost/logs/proxy_error_log";

	location ^~ /plesk-site-preview/ {
		proxy_pass http://127.0.0.1:8880;
		proxy_set_header Host             plesk-site-preview.local;
		proxy_set_header X-Real-IP        $remote_addr;
		proxy_set_header X-Forwarded-For  $proxy_add_x_forwarded_for;
		proxy_cookie_domain plesk-site-preview.local $host;
		access_log off;
	}

	#extension letsencrypt begin
	location /.well-known/acme-challenge/ {
		root /var/www/vhosts/default/htdocs;

		types { }
		default_type text/plain;

		satisfy any;
		auth_basic off;
		allow all;

		location ~ ^/\.well-known/acme-challenge.*/\. {
			deny all;
		}
	}
	#extension letsencrypt end

	location / {
		proxy_pass http://46.37.14.151:7080;
		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-Accel-Internal /internal-nginx-static-location;
		access_log off;
	}

	location /internal-nginx-static-location/ {
		alias /var/www/vhosts/admin77152779.localhost/httpdocs/;
		add_header X-Powered-By PleskLin;
		internal;
	}

}