Compare commits

...
Sign in to create a new pull request.

5 commits

Author SHA1 Message Date
905f1f53bd feat: add new service "srv.vlw.se" (#7)
Reviewed-on: #7
2025-03-21 14:30:04 +01:00
vlw
8d534bcd93 fix: add CORS headers to vlw API (#6)
Reviewed-on: #6
Co-authored-by: vlw <victor@vlw.se>
Co-committed-by: vlw <victor@vlw.se>
2025-03-17 11:14:10 +01:00
49e8859cec feat: add service blob.vlw.se (#5)
Reviewed-on: #5
2025-02-09 10:44:21 +01:00
4f984d805f feat: add new service "href.vlw.se" (#4)
Reviewed-on: #4
2025-02-09 10:31:03 +01:00
8120697609 feat: add service names to sites-available (#2)
Reviewed-on: #2
2025-01-20 13:32:35 +01:00
12 changed files with 54 additions and 18 deletions

View file

@ -0,0 +1,16 @@
server {
listen 443 ssl;
server_name api.vlw.se;
include snippets/vlw.se-ssl;
location / {
add_header 'Access-Control-Allow-Origin' $http_origin;
add_header 'Access-Control-Allow-Credentials' 'true';
add_header 'Access-Control-Allow-Methods' 'GET, POST, PATCH, PUT, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'Authorization, Origin, Content-Type, Accept';
proxy_pass http://localhost:8001;
}
}

View file

@ -1,13 +0,0 @@
server {
listen 443 ssl;
server_name social.suesity.vlw.se;
include snippets/suesity.vlw.se-ssl;
location / {
client_max_body_size 16M;
proxy_pass http://localhost:8007;
}
}

View file

@ -1,11 +1,11 @@
server {
listen 443 ssl;
server_name api.vlw.se;
server_name href.vlw.se;
include snippets/vlw.se-ssl;
location / {
proxy_pass http://localhost:8001;
proxy_pass http://localhost:8007;
}
}

View file

@ -1,13 +1,11 @@
server {
listen 443 ssl;
server_name blob.vlw.se;
server_name api-href.vlw.se;
include snippets/vlw.se-ssl;
location / {
client_max_body_size 16M;
proxy_pass http://localhost:8008;
}
}

View file

@ -0,0 +1,14 @@
server {
listen 443 ssl;
server_name srv.vlw.se *.srv.vlw.se;
include snippets/srv.vlw.se-ssl;
location / {
proxy_pass http://localhost:8009;
proxy_set_header Host $http_host;
proxy_pass_request_headers on;
}
}

21
sites-available/blob.conf Normal file
View file

@ -0,0 +1,21 @@
server {
listen 80;
server_name blob.vlw.se;
return 308 https://blob.vlw.se$request_uri;
}
server {
listen 443 ssl;
server_name blob.vlw.se;
include snippets/vlw.se-ssl;
root /mnt/misc/blobs;
location / {
try_files $uri =404;
}
}