Skip to content

Commit 1b3a30d

Browse files
authored
Merge pull request hestiacp#1314 from crackerizer/master
Added Odoo web template
2 parents 34eb4c1 + 397fdbb commit 1b3a30d

File tree

30 files changed

+2040
-0
lines changed

30 files changed

+2040
-0
lines changed
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
server {
2+
listen %ip%:%web_ssl_port%;
3+
server_name %domain_idn% %alias_idn%;
4+
root %sdocroot%;
5+
index index.php index.html index.htm;
6+
access_log /var/log/nginx/domains/%domain%.log combined;
7+
access_log /var/log/nginx/domains/%domain%.bytes bytes;
8+
error_log /var/log/nginx/domains/%domain%.error.log error;
9+
10+
ssl on;
11+
ssl_certificate %ssl_pem%;
12+
ssl_certificate_key %ssl_key%;
13+
14+
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
15+
proxy_redirect off;
16+
17+
proxy_set_header X-Forwarded-Host $host;
18+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
19+
proxy_set_header X-Forwarded-Proto $scheme;
20+
proxy_set_header X-Real-IP $remote_addr;
21+
22+
proxy_connect_timeout 720;
23+
proxy_send_timeout 720;
24+
proxy_read_timeout 720;
25+
send_timeout 720;
26+
27+
# Allow "Well-Known URIs" as per RFC 5785
28+
location ~* ^/.well-known/ {
29+
allow all;
30+
}
31+
32+
location / {
33+
proxy_pass http://127.0.0.1:8069;
34+
}
35+
36+
location /longpolling {
37+
proxy_pass http://127.0.0.1:8072;
38+
}
39+
40+
location ~* /web/static/ {
41+
proxy_cache_valid 200 60m;
42+
proxy_buffering on;
43+
expires 864000;
44+
proxy_pass http://127.0.0.1:8069;
45+
}
46+
47+
error_page 403 /error/404.html;
48+
error_page 404 /error/404.html;
49+
error_page 500 502 503 504 /error/50x.html;
50+
51+
location /error/ {
52+
alias %home%/%user%/web/%domain%/document_errors/;
53+
}
54+
55+
location ~* "/\.(htaccess|htpasswd)$" {
56+
deny all;
57+
return 404;
58+
}
59+
60+
location /vstats/ {
61+
alias %home%/%user%/web/%domain%/stats/;
62+
include %home%/%user%/web/%domain%/stats/auth.conf*;
63+
}
64+
65+
include /etc/nginx/conf.d/phpmyadmin.inc*;
66+
include /etc/nginx/conf.d/phppgadmin.inc*;
67+
include /etc/nginx/conf.d/webmail.inc*;
68+
69+
include %home%/%user%/conf/web/snginx.%domain_idn%.conf*;
70+
}
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
server {
2+
listen %ip%:%web_port%;
3+
server_name %domain_idn% %alias_idn%;
4+
root %docroot%;
5+
index index.php index.html index.htm;
6+
access_log /var/log/nginx/domains/%domain%.log combined;
7+
access_log /var/log/nginx/domains/%domain%.bytes bytes;
8+
error_log /var/log/nginx/domains/%domain%.error.log error;
9+
10+
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
11+
proxy_redirect off;
12+
13+
proxy_set_header X-Forwarded-Host $host;
14+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
15+
proxy_set_header X-Forwarded-Proto $scheme;
16+
proxy_set_header X-Real-IP $remote_addr;
17+
18+
proxy_connect_timeout 720;
19+
proxy_send_timeout 720;
20+
proxy_read_timeout 720;
21+
send_timeout 720;
22+
23+
# Allow "Well-Known URIs" as per RFC 5785
24+
location ~* ^/.well-known/ {
25+
allow all;
26+
}
27+
28+
location / {
29+
proxy_pass http://127.0.0.1:8069;
30+
}
31+
32+
location /longpolling {
33+
proxy_pass http://127.0.0.1:8072;
34+
}
35+
36+
location ~* /web/static/ {
37+
proxy_cache_valid 200 60m;
38+
proxy_buffering on;
39+
expires 864000;
40+
proxy_pass http://127.0.0.1:8069;
41+
}
42+
43+
error_page 403 /error/404.html;
44+
error_page 404 /error/404.html;
45+
error_page 500 502 503 504 /error/50x.html;
46+
47+
location /error/ {
48+
alias %home%/%user%/web/%domain%/document_errors/;
49+
}
50+
51+
location ~* "/\.(htaccess|htpasswd)$" {
52+
deny all;
53+
return 404;
54+
}
55+
56+
location /vstats/ {
57+
alias %home%/%user%/web/%domain%/stats/;
58+
include %home%/%user%/web/%domain%/stats/auth.conf*;
59+
}
60+
61+
include /etc/nginx/conf.d/phpmyadmin.inc*;
62+
include /etc/nginx/conf.d/phppgadmin.inc*;
63+
include /etc/nginx/conf.d/webmail.inc*;
64+
65+
include %home%/%user%/conf/web/nginx.%domain_idn%.conf*;
66+
}
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
server {
2+
listen %ip%:%web_ssl_port%;
3+
server_name %domain_idn% %alias_idn%;
4+
root %sdocroot%;
5+
index index.php index.html index.htm;
6+
access_log /var/log/nginx/domains/%domain%.log combined;
7+
access_log /var/log/nginx/domains/%domain%.bytes bytes;
8+
error_log /var/log/nginx/domains/%domain%.error.log error;
9+
10+
ssl on;
11+
ssl_certificate %ssl_pem%;
12+
ssl_certificate_key %ssl_key%;
13+
14+
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
15+
proxy_redirect off;
16+
17+
proxy_set_header X-Forwarded-Host $host;
18+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
19+
proxy_set_header X-Forwarded-Proto $scheme;
20+
proxy_set_header X-Real-IP $remote_addr;
21+
22+
proxy_connect_timeout 720;
23+
proxy_send_timeout 720;
24+
proxy_read_timeout 720;
25+
send_timeout 720;
26+
27+
# Allow "Well-Known URIs" as per RFC 5785
28+
location ~* ^/.well-known/ {
29+
allow all;
30+
}
31+
32+
location / {
33+
proxy_pass http://127.0.0.1:8069;
34+
}
35+
36+
location /longpolling {
37+
proxy_pass http://127.0.0.1:8072;
38+
}
39+
40+
location ~* /web/static/ {
41+
proxy_cache_valid 200 60m;
42+
proxy_buffering on;
43+
expires 864000;
44+
proxy_pass http://127.0.0.1:8069;
45+
}
46+
47+
error_page 403 /error/404.html;
48+
error_page 404 /error/404.html;
49+
error_page 500 502 503 504 /error/50x.html;
50+
51+
location /error/ {
52+
alias %home%/%user%/web/%domain%/document_errors/;
53+
}
54+
55+
location ~* "/\.(htaccess|htpasswd)$" {
56+
deny all;
57+
return 404;
58+
}
59+
60+
location /vstats/ {
61+
alias %home%/%user%/web/%domain%/stats/;
62+
include %home%/%user%/web/%domain%/stats/auth.conf*;
63+
}
64+
65+
include /etc/nginx/conf.d/phpmyadmin.inc*;
66+
include /etc/nginx/conf.d/phppgadmin.inc*;
67+
include /etc/nginx/conf.d/webmail.inc*;
68+
69+
include %home%/%user%/conf/web/snginx.%domain_idn%.conf*;
70+
}
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
server {
2+
listen %ip%:%web_port%;
3+
server_name %domain_idn% %alias_idn%;
4+
root %docroot%;
5+
index index.php index.html index.htm;
6+
access_log /var/log/nginx/domains/%domain%.log combined;
7+
access_log /var/log/nginx/domains/%domain%.bytes bytes;
8+
error_log /var/log/nginx/domains/%domain%.error.log error;
9+
10+
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
11+
proxy_redirect off;
12+
13+
proxy_set_header X-Forwarded-Host $host;
14+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
15+
proxy_set_header X-Forwarded-Proto $scheme;
16+
proxy_set_header X-Real-IP $remote_addr;
17+
18+
proxy_connect_timeout 720;
19+
proxy_send_timeout 720;
20+
proxy_read_timeout 720;
21+
send_timeout 720;
22+
23+
# Allow "Well-Known URIs" as per RFC 5785
24+
location ~* ^/.well-known/ {
25+
allow all;
26+
}
27+
28+
location / {
29+
proxy_pass http://127.0.0.1:8069;
30+
}
31+
32+
location /longpolling {
33+
proxy_pass http://127.0.0.1:8072;
34+
}
35+
36+
location ~* /web/static/ {
37+
proxy_cache_valid 200 60m;
38+
proxy_buffering on;
39+
expires 864000;
40+
proxy_pass http://127.0.0.1:8069;
41+
}
42+
43+
error_page 403 /error/404.html;
44+
error_page 404 /error/404.html;
45+
error_page 500 502 503 504 /error/50x.html;
46+
47+
location /error/ {
48+
alias %home%/%user%/web/%domain%/document_errors/;
49+
}
50+
51+
location ~* "/\.(htaccess|htpasswd)$" {
52+
deny all;
53+
return 404;
54+
}
55+
56+
location /vstats/ {
57+
alias %home%/%user%/web/%domain%/stats/;
58+
include %home%/%user%/web/%domain%/stats/auth.conf*;
59+
}
60+
61+
include /etc/nginx/conf.d/phpmyadmin.inc*;
62+
include /etc/nginx/conf.d/phppgadmin.inc*;
63+
include /etc/nginx/conf.d/webmail.inc*;
64+
65+
include %home%/%user%/conf/web/nginx.%domain_idn%.conf*;
66+
}
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
server {
2+
listen %ip%:%web_ssl_port%;
3+
server_name %domain_idn% %alias_idn%;
4+
root %sdocroot%;
5+
index index.php index.html index.htm;
6+
access_log /var/log/nginx/domains/%domain%.log combined;
7+
access_log /var/log/nginx/domains/%domain%.bytes bytes;
8+
error_log /var/log/nginx/domains/%domain%.error.log error;
9+
10+
ssl on;
11+
ssl_certificate %ssl_pem%;
12+
ssl_certificate_key %ssl_key%;
13+
14+
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
15+
proxy_redirect off;
16+
17+
proxy_set_header X-Forwarded-Host $host;
18+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
19+
proxy_set_header X-Forwarded-Proto $scheme;
20+
proxy_set_header X-Real-IP $remote_addr;
21+
22+
proxy_connect_timeout 720;
23+
proxy_send_timeout 720;
24+
proxy_read_timeout 720;
25+
send_timeout 720;
26+
27+
# Allow "Well-Known URIs" as per RFC 5785
28+
location ~* ^/.well-known/ {
29+
allow all;
30+
}
31+
32+
location / {
33+
proxy_pass http://127.0.0.1:8069;
34+
}
35+
36+
location /longpolling {
37+
proxy_pass http://127.0.0.1:8072;
38+
}
39+
40+
location ~* /web/static/ {
41+
proxy_cache_valid 200 60m;
42+
proxy_buffering on;
43+
expires 864000;
44+
proxy_pass http://127.0.0.1:8069;
45+
}
46+
47+
error_page 403 /error/404.html;
48+
error_page 404 /error/404.html;
49+
error_page 500 502 503 504 /error/50x.html;
50+
51+
location /error/ {
52+
alias %home%/%user%/web/%domain%/document_errors/;
53+
}
54+
55+
location ~* "/\.(htaccess|htpasswd)$" {
56+
deny all;
57+
return 404;
58+
}
59+
60+
location /vstats/ {
61+
alias %home%/%user%/web/%domain%/stats/;
62+
include %home%/%user%/web/%domain%/stats/auth.conf*;
63+
}
64+
65+
include /etc/nginx/conf.d/phpmyadmin.inc*;
66+
include /etc/nginx/conf.d/phppgadmin.inc*;
67+
include /etc/nginx/conf.d/webmail.inc*;
68+
69+
include %home%/%user%/conf/web/snginx.%domain_idn%.conf*;
70+
}

0 commit comments

Comments
 (0)