Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
yotta
/
pictogram
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
60
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
c0fd17ec
authored
Mar 09, 2021
by
Arturo Montejo Ráez
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
TPV disabled
parent
217c5709
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
18 deletions
sails/cron/logrotate.conf
sails/cron/renewcerts.sh
sails/src/assets/scripts/modules/student/views/setup.html
sails/src/config/cors.js
sails/src/config/local.js~
sails/cron/logrotate.conf
View file @
c0fd17ec
/
home
/
ubuntu
/
pictogram
/
sails
/
logs
/
access
.
json
/
home
/
ubuntu
/
pictogram
/
sails
/
logs
/
error
.
json
/
home
/
ubuntu
/
pictogram
/
sails
/
logs
/
debug
.
json
/
home
/
ubuntu
/
pictogram
/
sails
/
logs
/
silly
.
json
/
home
/
ubuntu
/
pictogram
/
sails
/
logs
/
info
.
json
{
/
var
/
log
/
pictogramapp
-
check
.
log
/
home
/
ubuntu
/
pictogram
/
sails
/
logs
/
access
.
json
/
home
/
ubuntu
/
pictogram
/
sails
/
logs
/
error
.
json
/
home
/
ubuntu
/
pictogram
/
sails
/
logs
/
debug
.
json
/
home
/
ubuntu
/
pictogram
/
sails
/
logs
/
silly
.
json
/
home
/
ubuntu
/
pictogram
/
sails
/
logs
/
info
.
json
{
size
1
k
rotate
7
dateext
...
...
sails/cron/renewcerts.sh
100644 → 100755
View file @
c0fd17ec
#!/bin/bash
# Renew certs
/home/ubuntu/letsencrypt/letsencrypt-auto
--config
/etc/letsencrypt/cli.ini
-d
login.pictogramweb.com
-d
api.pictogramweb.com
-d
app.pictogramweb.com
-d
pre.yottacode.com
-d
pictogram.yottacode.com
-d
apk.pictogramweb.com certonly
/home/ubuntu/letsencrypt/letsencrypt-auto
--config
/etc/letsencrypt/cli.ini
-d
api.pictogramweb.com
-d
app.pictogramweb.com
-d
pre.yottacode.com
-d
pictogram.yottacode.com
-d
apk.pictogramweb.com certonly
# Reload Sails
(
cd
/home/ubuntu/pictogram/sails/src
;
/usr/bin/forever stopall
;
/usr/bin/forever start app.js
)
...
...
sails/src/assets/scripts/modules/student/views/setup.html
View file @
c0fd17ec
...
...
@@ -80,7 +80,8 @@
<div
class=
"row"
>
<div
class=
"col-xs-2"
><i
class=
"fa fa-certificate fa-lg text-danger"
aria-hidden=
"true"
></i></div>
<div
class=
"col-xs-10"
>
{{ 'license_expired_official' | translate }}
<a
ng-click=
"openBuyModal()"
>
{{ 'license_expired_renew' | translate }}
</a>
.
{{ 'license_expired_official' | translate }}
<a
href=
"mailto:info@yottacode.com"
>
{{ 'license_expired_renew' | translate }}
</a>
.
<!-- disable TPV {{ 'license_expired_official' | translate }} <a ng-click="openBuyModal()">{{ 'license_expired_renew' | translate }}</a>. -->
</div>
</div>
</div>
...
...
@@ -90,7 +91,8 @@
<div
class=
"row"
>
<div
class=
"col-xs-2"
><i
class=
"fa fa-flask fa-lg text-danger"
aria-hidden=
"true"
></i></div>
<div
class=
"col-xs-10"
>
{{ 'license_expired_trial' | translate }}
<a
ng-click=
"openBuyModal()"
>
{{ 'license_expired_buy' | translate }}
<!-- disable TPV {{ 'license_expired_trial' | translate }} <a ng-click="openBuyModal()">{{ 'license_expired_buy' | translate }} -->
{{ 'license_expired_trial' | translate }}
<a
href=
"mailto:info@yottacode.com"
>
{{ 'license_expired_buy' | translate }}
</a>
</div>
</div>
...
...
sails/src/config/cors.js
View file @
c0fd17ec
...
...
@@ -37,7 +37,7 @@ module.exports.cors = {
* *
***************************************************************************/
// allRoutes: fals
e,
allRoutes
:
tru
e
,
/***************************************************************************
* *
...
...
@@ -47,7 +47,7 @@ module.exports.cors = {
* *
***************************************************************************/
//
origin: '*',
origin
:
'*'
,
/***************************************************************************
* *
...
...
@@ -55,7 +55,7 @@ module.exports.cors = {
* *
***************************************************************************/
//
credentials: true,
credentials
:
true
,
/***************************************************************************
* *
...
...
@@ -64,7 +64,7 @@ module.exports.cors = {
* *
***************************************************************************/
// methods: 'GET, POST, PUT, DELETE, OPTIONS
, HEAD',
methods
:
'GET, POST, PUT, DELETE, OPTIONS, PATCH
, HEAD'
,
/***************************************************************************
* *
...
...
@@ -73,6 +73,6 @@ module.exports.cors = {
* *
***************************************************************************/
// headers: 'content-type
'
headers
:
'content-type, authorization
'
};
sails/src/config/local.js~
View file @
c0fd17ec
...
...
@@ -36,16 +36,13 @@ module.exports = {
* responses over https:// and/or use websockets over the wss:// protocol
* (recommended for HTTP, strongly encouraged for WebSockets)
*/
/* ssl: {
// ca: fs.readFileSync(path.join(__dirname, 'ssl', 'bundle.crt')),
key: fs.readFileSync(path.join(__dirname, 'ssl', 'yottacode.com.key')),
cert: fs.readFileSync(path.join(__dirname, 'ssl', 'yottacode.com.crt')),
},
*/
ssl: {
key: fs.readFileSync('/etc/letsencrypt/live/dev.yottacode.com/privkey.pem'),
cert: fs.readFileSync('/etc/letsencrypt/live/dev.yottacode.com/cert.pem')
}
// ca: fs.readFileSync(path.join(__dirname, 'ssl', 'development-bundle.crt')),
key: fs.readFileSync('/etc/letsencrypt/live/pre.yottacode.com/privkey.pem'),
cert: fs.readFileSync('/etc/letsencrypt/live/pre.yottacode.com/fullchain.pem')
},
/**
* The `port` setting determines which TCP port your app will be
* deployed on.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment