maj test git apres changement fai
This commit is contained in:
4
nationchains/logs/nginx/setup.town.access.log
Normal file
4
nationchains/logs/nginx/setup.town.access.log
Normal file
@@ -0,0 +1,4 @@
|
||||
[16/Apr/2023:14:28:49 +0200]##"-"##"GET / HTTP/1.1" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36"
|
||||
[16/Apr/2023:19:46:43 +0200]##"-"##"GET / HTTP/1.1" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36"
|
||||
[17/Apr/2023:11:00:16 +0200]##"-"##"GET / HTTP/1.1" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36"
|
||||
[17/Apr/2023:11:00:16 +0200]##"-"##"GET /favicon.ico HTTP/1.1" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36"
|
@@ -1,11 +1,5 @@
|
||||
server {
|
||||
server_name {{#dns}} {{.}} {{/dns}};
|
||||
add_header X-Request-ID $request_id; # Return to client
|
||||
add_header Access-Control-Allow-Origin *;
|
||||
add_header Access-Control-Max-Age 3600;
|
||||
add_header Access-Control-Expose-Headers Content-Length;
|
||||
add_header Access-Control-Allow-Headers Range;
|
||||
|
||||
access_log {{{dirname}}}/{{{nginx.fswww}}}logs/nginx/{{{nginx.website}}}.{{{nginx.tribeid}}}.access.log main;
|
||||
# /plugins/pluginame/components/xxx?plugin=pluginname&pluginkey=key
|
||||
# acess if exist pluginkey
|
@@ -1,6 +1,6 @@
|
||||
user {{sudoerUser}};
|
||||
user {{{sudoerUser}}};
|
||||
worker_processes auto;
|
||||
error_log /var/log/nginx/error.log notice;
|
||||
error_log {{{ }}}/var/log/nginx/error.log notice;
|
||||
pid /var/run/nginx.pid;
|
||||
#include /etc/nginx/modules-enabled/*.conf;
|
||||
|
||||
@@ -29,6 +29,6 @@ http {
|
||||
# Virtual Host Configs
|
||||
##
|
||||
{{#nginx.include}}
|
||||
include {{.}};
|
||||
include {{{.}}};
|
||||
{{/nginx.include}}
|
||||
}
|
@@ -2,7 +2,7 @@
|
||||
"nationName":"ants",
|
||||
"townName":"setuptown",
|
||||
"tribeName":"setuptribe",
|
||||
"dns":"mydnsapxtrib",
|
||||
"dns":["adminapx"],
|
||||
"apiport":3018,
|
||||
"language":["en"],
|
||||
"jwtsecret":"longsentenceusedtoencryptionChangethisforproduction",
|
||||
@@ -18,7 +18,8 @@
|
||||
"json": { "limit": "500mb" }
|
||||
},
|
||||
"nginx":{
|
||||
"restart":"sudo systemctl restart nginx",
|
||||
"worker_connections":1024,
|
||||
"include":["/etc/nginx/conf.d/*.conf", "include /etc/nginx/sites-enabled/*"]
|
||||
"include":["/etc/nginx/conf.d/*.conf", "/etc/nginx/sites-enabled/*"]
|
||||
}
|
||||
}
|
52
nationchains/www/nginx_setup.conf
Normal file
52
nationchains/www/nginx_setup.conf
Normal file
@@ -0,0 +1,52 @@
|
||||
server {
|
||||
server_name adminapx ;
|
||||
access_log /media/phil/usbfarm/apxtrib/nationchains/logs/nginx/setup.town.access.log main;
|
||||
# /plugins/pluginame/components/xxx?plugin=pluginname&pluginkey=key
|
||||
# acess if exist pluginkey
|
||||
location /plugins/ {
|
||||
add_header X-debug "plugins local $arg_plugin/keys/$arg_pluginkey sent";
|
||||
root /media/phil/usbfarm/apxtrib/nationchains//plugins/;
|
||||
if (-f /media/phil/usbfarm/apxtrib/nationchains//plugins/$arg_plugin/keys/$arg_pluginkey) {
|
||||
rewrite /plugins/([^/]+)/components/([^\?]+) /$1/components/$2 break;
|
||||
}
|
||||
return 403 "No valid token access for plugin:$arg_plugin with token:$arg_pluginkey please ask your admin";
|
||||
}
|
||||
|
||||
location /cdn/ {
|
||||
rewrite /cdn/(.*$) /$1 break;
|
||||
root /media/phil/usbfarm/apxtrib/nationchains//www/cdn/;
|
||||
}
|
||||
|
||||
location /spacedev/ {
|
||||
rewrite /spacedev/(.*$) /$1 break;
|
||||
root /media/phil/usbfarm/apxtrib/nationchains//spacedev//dist/;
|
||||
}
|
||||
|
||||
location /app/ {
|
||||
rewrite /app/(.*$) /$1 break;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
client_max_body_size 10m;
|
||||
client_body_buffer_size 128k;
|
||||
proxy_connect_timeout 90;
|
||||
proxy_send_timeout 90;
|
||||
proxy_read_timeout 90;
|
||||
proxy_buffers 32 4k;
|
||||
proxy_set_header X-NginX-Proxy true;
|
||||
proxy_pass http://localhost:3018;
|
||||
proxy_redirect off;
|
||||
}
|
||||
|
||||
location / {
|
||||
root /media/phil/usbfarm/apxtrib/nationchains//www/app/;
|
||||
index index.html ;
|
||||
}
|
||||
error_page 404 /404.html;
|
||||
# redirect server error pages to the static page /50x.html
|
||||
#
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
root /usr/local/nginx/html;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user