wip
This commit is contained in:
parent
78dd50e6f1
commit
c3992ae03d
4 changed files with 10 additions and 8 deletions
|
@ -5,7 +5,7 @@ define( 'YOURLS_DB_NAME', 'yourls' );
|
||||||
define( 'YOURLS_DB_HOST', 'localhost' );
|
define( 'YOURLS_DB_HOST', 'localhost' );
|
||||||
define( 'YOURLS_DB_PREFIX', 'yourls_' );
|
define( 'YOURLS_DB_PREFIX', 'yourls_' );
|
||||||
|
|
||||||
define( 'YOURLS_SITE', '${url}' );
|
define( 'YOURLS_SITE', 'https://${hostname}' );
|
||||||
define( 'YOURLS_LANG', '' );
|
define( 'YOURLS_LANG', '' );
|
||||||
define( 'YOURLS_UNIQUE_URLS', true );
|
define( 'YOURLS_UNIQUE_URLS', true );
|
||||||
define( 'YOURLS_PRIVATE', true );
|
define( 'YOURLS_PRIVATE', true );
|
||||||
|
|
|
@ -27,7 +27,7 @@ files = {
|
||||||
'group': 'www-data',
|
'group': 'www-data',
|
||||||
'context': {
|
'context': {
|
||||||
'db_password': node.metadata.get('mariadb/databases/yourls/password'),
|
'db_password': node.metadata.get('mariadb/databases/yourls/password'),
|
||||||
'url': node.metadata.get('yourls/url'),
|
'hostname': node.metadata.get('yourls/hostname'),
|
||||||
'cookiekey': node.metadata.get('yourls/cookiekey'),
|
'cookiekey': node.metadata.get('yourls/cookiekey'),
|
||||||
'users': node.metadata.get('yourls/users'),
|
'users': node.metadata.get('yourls/users'),
|
||||||
},
|
},
|
||||||
|
|
|
@ -9,16 +9,18 @@ defaults = {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
metadata_reactor.provides(
|
@metadata_reactor.provides(
|
||||||
'nginx/vhosts/yourls',
|
'nginx/vhosts',
|
||||||
)
|
)
|
||||||
def nginx(metadata):
|
def nginx(metadata):
|
||||||
return {
|
return {
|
||||||
'nginx': {
|
'nginx': {
|
||||||
'vhosts': {
|
'vhosts': {
|
||||||
'yourls': {
|
metadata.get('yourls/url'): {
|
||||||
'server_name': metadata.get('yourls/url'),
|
'content': 'yourls/vhost.conf',
|
||||||
'php_version': metadata.get('php/version'),
|
'context': {
|
||||||
|
'php_version': metadata.get('php/version'),
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
'ram': 4096,
|
'ram': 4096,
|
||||||
},
|
},
|
||||||
'yourls': {
|
'yourls': {
|
||||||
'url': "https://direkt.oranienschule.de",
|
'hostname': "direkt.oranienschule.de",
|
||||||
'cookiekey': "!decrypt:encrypt$gAAAAABoRvmcUs3t7PREllyeN--jBqs0XYewMHW16GWC-ikLzsDSe02YKGycOlgXuHU4hzKbNjGMEutpFXRLk9Zji6bbpy4GdyE6vStfwd8ZT0obAyoqBPwI47LwUlDSFMS51y5j8rG5",
|
'cookiekey': "!decrypt:encrypt$gAAAAABoRvmcUs3t7PREllyeN--jBqs0XYewMHW16GWC-ikLzsDSe02YKGycOlgXuHU4hzKbNjGMEutpFXRLk9Zji6bbpy4GdyE6vStfwd8ZT0obAyoqBPwI47LwUlDSFMS51y5j8rG5",
|
||||||
'version': "1.10.1",
|
'version': "1.10.1",
|
||||||
'users': {
|
'users': {
|
||||||
|
|
Loading…
Reference in a new issue