modif towns
This commit is contained in:
@@ -1,16 +1,14 @@
|
||||
{
|
||||
"nationId": "ants",
|
||||
"townId": "usbfarm",
|
||||
"IP":"127.0.0.1",
|
||||
"tribeId":"devenv",
|
||||
"dns": ["adminapx"],
|
||||
"townId": "wall",
|
||||
"IP":"213.32.65.213",
|
||||
"tribeId":"ndda",
|
||||
"dns": ["wallant.ndda.fr"],
|
||||
"mayorId":"philc",
|
||||
"passphrase":"",
|
||||
"api": {
|
||||
"port": 3020,
|
||||
"languages": ["en","fr"],
|
||||
"jwtsecret": "longsentenceusedtoencryptionChangethisforproduction",
|
||||
"saltRounds": 10,
|
||||
"exposedHeaders": ["xhash", "xalias", "xlang", "xtribe", "xapp"],
|
||||
"nationObjects":["schema","blocks","nations","towns","tribes","pagans"],
|
||||
"unittesting": ["middlewares", "models", "routes", "nationchains"],
|
||||
|
@@ -1,17 +1,17 @@
|
||||
server {
|
||||
server_name adminapx ;
|
||||
access_log /media/phil/usbfarm/apxtrib/nationchains/logs/nginx/adminapx.town.access.log main;
|
||||
server_name wallants.ndda.fr ;
|
||||
access_log /home/phil/workspace/apxtrib/nationchains/logs/nginx/adminapx.town.access.log main;
|
||||
|
||||
location ~* /nationchains/(schema|blocks|pagans|towns|nations)/ {
|
||||
# Warning: never add tribes for keeping it private
|
||||
root /media/phil/usbfarm/apxtrib/;
|
||||
root /home/phil/workspace/apxtrib/;
|
||||
}
|
||||
# /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) {
|
||||
root /home/phil/workspace/apxtrib/nationchains//plugins/;
|
||||
if (-f /home/phil/workspace/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";
|
||||
@@ -19,12 +19,12 @@ server {
|
||||
|
||||
location /cdn/ {
|
||||
rewrite /cdn/(.*$) /$1 break;
|
||||
root /media/phil/usbfarm/apxtrib/nationchains/www/cdn/;
|
||||
root /home/phil/workspace/apxtrib/nationchains/www/cdn/;
|
||||
}
|
||||
|
||||
location /spacedev/ {
|
||||
rewrite /spacedev/(.*$) /$1 break;
|
||||
root /media/phil/usbfarm/apxtrib/nationchains/spacedev/adminapx/dist/;
|
||||
root /home/phil/workspace/apxtrib/nationchains/spacedev/adminapx/dist/;
|
||||
}
|
||||
|
||||
location /api/ {
|
||||
@@ -35,7 +35,7 @@ server {
|
||||
}
|
||||
|
||||
location / {
|
||||
root /media/phil/usbfarm/apxtrib/nationchains/www/adminapx;
|
||||
root /home/phil/workspace/apxtrib/nationchains/www/adminapx;
|
||||
index index.html index_en.html;
|
||||
}
|
||||
error_page 404 /404.html;
|
||||
@@ -45,4 +45,24 @@ server {
|
||||
location = /50x.html {
|
||||
root /usr/local/nginx/html;
|
||||
}
|
||||
|
||||
|
||||
listen 443 ssl; # managed by Certbot
|
||||
ssl_certificate /etc/letsencrypt/live/wallants.ndda.fr/fullchain.pem; # managed by Certbot
|
||||
ssl_certificate_key /etc/letsencrypt/live/wallants.ndda.fr/privkey.pem; # managed by Certbot
|
||||
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
|
||||
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
|
||||
|
||||
}
|
||||
server {
|
||||
if ($host = wallants.ndda.fr) {
|
||||
return 301 https://$host$request_uri;
|
||||
} # managed by Certbot
|
||||
|
||||
|
||||
server_name wallants.ndda.fr ;
|
||||
listen 80;
|
||||
return 404; # managed by Certbot
|
||||
|
||||
|
||||
}
|
Reference in New Issue
Block a user