modif model nginx
This commit is contained in:
@@ -2,11 +2,15 @@ server {
|
||||
server_name {{#dns}} {{.}} {{/dns}};
|
||||
access_log {{{nginx.logs}}}.access.log main;
|
||||
|
||||
location ~* /nationchains/(schema|blocks|pagans|towns|nations)/ {
|
||||
location ~* /nationchains/(blocks|pagans|towns|nations)/ {
|
||||
# Warning: never add tribes for keeping it private
|
||||
root {{{dirapi}}}/;
|
||||
}
|
||||
|
||||
location ~* /nationchains/schema/ {
|
||||
#outside of nationchains for git purpose
|
||||
rewrite /nationchains/schema/(.*$) /$1 break;
|
||||
root {{{dirapi}}}/adminapi/www/adminapx/schema/;
|
||||
}
|
||||
# /plugins/pluginame/components/xxx?plugin=pluginname&pluginkey=key
|
||||
# acess if exist pluginkey
|
||||
location /plugins/ {
|
||||
@@ -34,12 +38,13 @@ proxy_pass http://localhost:{{{api.port}}};
|
||||
proxy_redirect off;
|
||||
include proxy_params;
|
||||
}
|
||||
#to add htpasswd install apache2-utils => sudo htpasswd -c dirtown/tribes/tribeId/.htpasswd loginname passwd see man for option
|
||||
#to add htpasswd install apache2-utils => sudo htpasswd -c dirtown/tribes/tribeId/.htpasswd loginname passwd see man for
|
||||
option
|
||||
|
||||
location / {
|
||||
{{#nginx.private}}
|
||||
{{#nginx.private}}
|
||||
auth_basic "Mot de passe {{nginx.privatelogin}}";
|
||||
auth_basic_user_file {{dirtown}}/tribes/{{tribeId}}/.htpasswd;
|
||||
auth_basic_user_file {{dirtown}}/tribes/{{tribeId}}/.htpasswd;
|
||||
{{/nginx.private}}
|
||||
root {{{nginx.fswww}}}/{{{nginx.website}}};
|
||||
index index.html {{{nginx.pageindex}}};
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"$schema":"http://json-schema.org/schema#",
|
||||
"$id":"nationchains/socialworld/objects/schema/nations",
|
||||
"$id":"schema/nations",
|
||||
"title": "Nation definition",
|
||||
"description": "A nation from apXtrib world",
|
||||
"$comment":"see ./lg/nations_lg.json for description in your languange lg",
|
||||
|
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "nationchains/schema/person",
|
||||
"$id": "/schema/person",
|
||||
"title": "Person minimum definition to link a person to a pagan identity",
|
||||
"description": "A person is a human with a apxtrib identity (Public Private Key. Information stored (not cipher) for a person are only visible from the town's Mayor and the tribe's Druid. You need at least trus the druid that trust the mayor (for sensitive data Mayor and Druid can be the same apx Identity.) Only a pagan that have the privateKey can read cipher data. The purpose of this sschema is to link a person to a tribe and manage basic activities, profil will be a tribe object if need more personnal information",
|
||||
"type": "objects",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"alias": {
|
||||
"type": "string",
|
||||
@@ -25,12 +25,13 @@
|
||||
"privatekey": { "type": "string", "format": "eccCorve25519armored" }
|
||||
}
|
||||
},
|
||||
"recoveryauth":{"type":"object","$ref":""},
|
||||
"biography": {
|
||||
"type": "string",
|
||||
"pattern": "^.{O,150}$"
|
||||
},
|
||||
"imgavatar": {
|
||||
"type": "string",
|
||||
"type": "string"
|
||||
},
|
||||
"accessrights": {
|
||||
"type": "object",
|
||||
|
Reference in New Issue
Block a user