Skip to content

Commit

Permalink
Merge branch 'main' into prod
Browse files Browse the repository at this point in the history
  • Loading branch information
kazhamiakin committed Mar 1, 2024
2 parents 345b72d + 1188e8d commit 4a591b3
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 21 deletions.
37 changes: 20 additions & 17 deletions backend/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,20 @@ server:
spring:
data:
mongodb:
uri: ${MONGO_URI:mongodb://localhost:27017}
database: ${MONGO_DATABASE:pgazienda}
uri: ${MONGO_URI:}
database: ${MONGO_DATABASE:}
web:
pageable:
max-page-size: 10000

mail:
username: ${MAIL_USERNAME:username}
username: ${MAIL_USERNAME:}
password: ${MAIL_PASSWORD:}
host: ${MAIL_HOST:localhost}
port: ${MAIL_PORT:25}
protocol: ${MAIL_PROTOCOL:smtp}
from: ${MAIL_FROM:[email protected]}
baseurl: ${MAIL_BASEURL:http://localhost}
host: ${MAIL_HOST:}
port: ${MAIL_PORT:}
protocol: ${MAIL_PROTOCOL:}
from: ${MAIL_FROM:}
baseurl: ${MAIL_BASEURL:}
properties:
mail:
smtps:
Expand All @@ -33,14 +36,14 @@ spring:
authorization-grant-type: client_credentials
provider:
custom:
token-uri: ${AAC_TOKEN_URI:https://aac.platform.smartcommunitylab.it/oauth/token}
jwk-set-uri: ${AAC_JWK_URI:https://aac.platform.smartcommunitylab.it/jwk}
issuer-uri: ${AAC_ISSUER_URI:https://aac.platform.smartcommunitylab.it}
user-info-uri: ${SECURITY_EXT_USERINFO_ENDPOINT:https://aac.platform.smartcommunitylab.it/userinfo}
token-uri: ${AAC_TOKEN_URI:}
jwk-set-uri: ${AAC_JWK_URI:}
issuer-uri: ${AAC_ISSUER_URI:}
user-info-uri: ${SECURITY_EXT_USERINFO_ENDPOINT:}

management:
server:
port: ${MANAGEMENT_PORT:7878}
port: ${MANAGEMENT_PORT:}
endpoints:
web:
base-path: /
Expand All @@ -60,15 +63,15 @@ swagger:
email: [email protected]

admin:
username: ${ADMIN_USERNAME:admin}
password: ${ADMIN_PASSWORD:admin}
username: ${ADMIN_USERNAME:}
password: ${ADMIN_PASSWORD:}

app:
security:
authentication:
jwt:
# This token must be encoded using Base64 and be at least 256 bits long (you can type `openssl rand -base64 64` on your command line to generate a 512 bits one)
base64-secret: ${SECURITY_SECRET:bgYh3rbvGzbJKK/q7k624Ct360QuA4IHHO8jBtMUKA/spqu+BMLkktWpiQuBMXuoVxBYOUwWnBvLXnizzrhKFyJkX9gf9gU6+L8tJl6D1VjAwh8w/iwqiubqmmMSSRxdmu7rmFWLlSi3HpumEfsIzagI2TiPI2U2pCn27vn2TAthiUXELXusVYe3r9awz2DQP/V10yi3j9AIh0Gslz89yUjY6tmrQ8RcJSApvo4FGBdK1EzZU/6CZaEFvmPQEx3I8TG26Y8pVqfcuR+OELhLQ2iOfP5ZlwQiom4UmkNdbMh4ZLyfSN0C9anZojYnpSBym6N8XOQo+7Ueqgpm0w0dFw==}
base64-secret: ${SECURITY_SECRET:}
# Token is valid 24 hours
token-validity-in-seconds: 86400
token-validity-in-seconds-for-remember-me: 2592000
Expand All @@ -80,5 +83,5 @@ app:
domain: ${SECURITY_EXT_USERINFO_DOMAIN:}

legacyCampaign: ferrara_bike2work
engineEndpoint: ${ENGINE_ENDPOINT:https://backenddev.playngo.it/playandgo/}
engineEndpoint: ${ENGINE_ENDPOINT:}

2 changes: 1 addition & 1 deletion console_aziendale/src/services/campaign.services.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function getAllCampaigns(companyId = null) {
else url = url + process.env.VUE_APP_ALL_CAMPAIGNS_API
return axios.get(url,{
params: {
size: 1200
size: 1000
}
}).then(
res => {
Expand Down
2 changes: 1 addition & 1 deletion console_aziendale/src/services/company.services.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const companyService = {
function getAllCompanies() {
return axios.get(process.env.VUE_APP_BASE_URL + process.env.VUE_APP_COMPANIES_API,{
params: {
size: 1200
size: 1000
}
}).then(
res => {
Expand Down
2 changes: 1 addition & 1 deletion console_aziendale/src/services/employee.services.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function importEmployees(companyId,file) {
function getAllEmployees(companyId) {
return axios.get(process.env.VUE_APP_BASE_URL + process.env.VUE_APP_COMPANIES_API + '/' + companyId + '/' + process.env.VUE_APP_EMPLOYEES_API, {
params: {
size: 1200
size: 10000
}
}).then(
res => {
Expand Down
2 changes: 1 addition & 1 deletion console_aziendale/src/services/location.services.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function importLocations(companyId,file) {
//get all the companies
function getAllLocations(companyId) {
return axios.get(process.env.VUE_APP_BASE_URL + process.env.VUE_APP_COMPANIES_API+ '/' + companyId + '/' +process.env.VUE_APP_LOCATIONS_API,{ params: {
size: 1200
size: 1000
}
} ).then(
res => {
Expand Down

0 comments on commit 4a591b3

Please sign in to comment.